Login
or
register
Overview
Introduction
Features
Credits
License
This Wiki
Status
News
Releases
Change Log
Recent Wiki Edits
User Guide
Installation
Command Line
Using as a Module
Integration
Reporting Bugs
Advanced
Mailing List
Source Code
Test Suite
Extensions
Extensions
Writing Extensions
Available Extensions
Related Projects
Tickets
▹ 000046
Attributes of headers
Anonymous users must enter
captcha
below.
Don't put anything here
Don't put anything here
Ticket Information
Ticket Title
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.
Reported by
Assigned to
Status
open
someday
resolved
closed
Resolution
n.a.
fixed
wontfix
Advanced Fields
Priority
unassigned
high
medium
low
Resolution Explanation
Component
About This Edit
Minor Edit
Edit Summary
Don't put anything here
Don't put anything here
Don't put anything here
Don't put anything here
save
preview
cancel
Powered by
Sputnik
|
XHTML 1.1