ticket id
000046
status
closed
priority
???
assigned to
NOBODY
Reported by: Ryan Govostes
Component:

Markdown permits headers like this:

## Hello World ##

However, if we want to add a class attribute to the header like so,

## Hello World ## {@class=first}

we get back HTML which looks like this:

<h2 class="first">Hello World ##</h2>

Comments

By Waylan on 10/12/09:

Well, the following work fine:

## Hello World {@class=first} ##

## Hello World {@class=first}

And in fact the reported markup appears to have never worked. At least in 1.7 it crashed with an error. I'd say your using bad syntax and this is not a bug.

Seeing that no other implementation supports this syntax in any of the three above formats, I'm more inclined to remove it (or at least move it to an extension) than patch it in the core.

See the HeaderId extension for an alternative that works and is used across multiple Markdown implementations.

I'd suggest taking this to the list for discussion if you disagree with any of the above. I'll wait a while before closing this as "wontfix" - unless you can convince me otherwise.

By Waylan on 10/21/09:

I'm setting this "wontfix". This feature is implemented as an inline feature. of course anything after the closing hashes on a header are not part of the inline text so they have been thrown away by the time this part of the code runs. I'll leave the feature in asis for now, but this feature should be moved to an external extension at some point in the future.

Resolution

wontfix

Powered by Sputnik | XHTML 1.1