jeena / Bungloo

Basic Tent client for OS X and Linux
Other
43 stars 8 forks source link

Italic link markdown #255

Open poweruser82 opened 11 years ago

poweruser82 commented 11 years ago

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

poweruser82 commented 11 years ago

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

jeena commented 11 years ago

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

poweruser82 commented 11 years ago

But on Cupcake it worked :/

jeena commented 11 years ago

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

poweruser82 commented 11 years ago
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 commented 11 years ago

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 commented 11 years ago

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 https://github.com/jeena/Bungloo/issues/255#issuecomment-26588535.

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

poweruser82 commented 11 years ago

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