Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Italic link markdown #255

Open
poweruser82 opened this issue Oct 18, 2013 · 8 comments
Open

Italic link markdown #255

poweruser82 opened this issue Oct 18, 2013 · 8 comments

Comments

@poweruser82
Copy link
Contributor

The string _[example](http://example.com)_ is rendered as is and not as example

@poweruser82
Copy link
Contributor Author

[_example_](http://example.com) works

@jeena
Copy link
Owner

jeena commented Oct 18, 2013

I'm just using https://github.com/tent/tent-markdown-js so we should report it there I think.

@poweruser82
Copy link
Contributor Author

But on Cupcake it worked :/

@jeena
Copy link
Owner

jeena commented Oct 18, 2013

Hm ok, weird, will need to check why then.

@poweruser82
Copy link
Contributor Author

window.markdown.toHTML('_[a](b)_', 'Tent');

in Bungloo console correctly returns

<p><em><a href="b">a</a></em></p>

This very example worked, so the problem may be related to #256 .

@poweruser82
Copy link
Contributor Author

Another test: it breaks with YouTube URLs

window.markdown.toHTML('_[a](http://www.youtube.com/watch?v=0iyeUcFKRv4)_', 'Tent')

returns

<p>_[a](<a href="http://www.youtube.com/watch?v=0iyeUcFKRv4)_">http://www.youtube.com/watch?v=0iyeUcFKRv4)_</a></p>

in Bungloo, but

<p><em><a href="http://www.youtube.com/watch?v=0iyeUcFKRv4">a</a></em></p>

in Cupcake
Maybe the version included in Bungloo is buggy

@jeena
Copy link
Owner

jeena commented Oct 18, 2013

On Fri 18 Oct 2013 01:27:33 PM CEST, poweruser82 wrote:

Another test: it breaks with YouTube URLs

window.markdown.toHTML('a', 'Tent')

returns

_[a](http://www.youtube.com/watch?v=0iyeUcFKRv4)_

in Bungloo, but

a

in Cupcake
Maybe the version included in Bungloo is buggy


Reply to this email directly or view it on GitHub
#255 (comment).

Hm yeah, or perhaps I am doing something strange before of after it
with the youtube links, etc?

@poweruser82
Copy link
Contributor Author

The problem happens if there is a newline in the [].
No problem on Cupcake.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants