Twitter-like #hashtag won't be link

mogami's Avatar

mogami

21 Nov, 2012 02:37 AM

I marked [#test](https://twitter.com/search?q=%23test&src=hash) and expected that it will be link like #test, but Marked showed it in plain text.

Markdown Web Dingus works as I expected. So I guess that Marked have an issue to parse a compound markdown code.

  1. Support Staff 1 Posted by Brett on 21 Nov, 2012 03:15 AM

    Brett's Avatar

    Marked uses MultiMarkdown, which actually creates this from your text:

           <p><span class="externalcitation">[#test]</span>(https://twitter.com/search?q=%23test&amp;src=hash)</p>

    (You can see it in source view). That syntax triggers citation markup.

  2. 2 Posted by mogami on 21 Nov, 2012 11:13 AM

    mogami's Avatar

    Oh, syntax extension of MultiMarkdown, I see.

    I fixed this problem by replacing # to it's character reference (&num;).
    [&num;test]((https://twitter.com/search?q=%23test&src=hash))

  3. Support Staff 3 Posted by Brett on 22 Nov, 2012 03:03 AM

    Brett's Avatar

    You can also use escaping:

     [\#hey](http://brettterpstra.com)
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac