[top](#) doesn't go to the top in de Marked preview

nanitous's Avatar

nanitous

13 Nov, 2012 02:57 PM

The markdown [top](#) is translated into HTML as <a href="#">top</a>, so I'ld expect this link to jump to the top of the page in the Marked preview, but it doesn't.

Sure, setting an explicitly named anchor at the top of the page is a workaround.
But I rather would have a correct interpretation of the html in de Marked previewer, than correcting for unexpected behaviour.

Looking forward to a solution,

regards,

/Twan

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

    Brett's Avatar

    Yeah, that was causing an error because Marked captures hashtags and associates them with header ids, but in that case it was getting a null hash. I've added an exception for that in the next version.

  2. Brett closed this discussion on 22 Nov, 2012 03:07 AM.

Comments are currently closed for this discussion. You can start a new one.

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