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
▹ "{@class='foo'}\n+ foo" does not render as expected
markdown {@attr=val} syntax broken for unordered lists
Anonymous users must enter
captcha
below.
Ticket Information
Don't put anything here
Ticket Title
Don't put anything here
markdown doesn't seem to handle the `{@attr=val}` syntax for unordered lists, instead either preventing "+" from being parsed as a list element, or simply creating a `<p attr=val>`. I can get it to work for list elements (that is, `+ {@class="foo"}` behaves as expected). In [1]: from markdown import markdown as md In [2]: md('+ foo') Out[2]: u'<ul>\n<li>foo</li>\n</ul>' In [3]: md('+ {@class="foo"} foo') Out[3]: u'<ul>\n<li class=""foo""> foo</li>\n</ul>' In [4]: md('\n{@class="foo"}\n+ foo') Out[4]: u'<p class=""foo"">\n+ foo</p>' In [5]: md('\n{@class="foo"}+ foo') Out[5]: u'<p class=""foo"">+ foo</p>' In [6]: md('\n{@class="foo"}\n\n+ foo') Out[6]: u'<p class=""foo"" />\n<ul>\n<li>foo</li>\n</ul>' In [7]: md('{@class="foo"}\n\n+ foo') Out[7]: u'<p class=""foo"" />\n<ul>\n<li>foo</li>\n</ul>' ###Comments: __By Waylan on June 24, 2009__ Thanks for the report. However, I'm setting this as "wontfix". First of all, Python-Markdown is the only implementation of Markdown that even supports setting the class on list items. Second, it's not an official part of markdown for any part of the syntax. Third, Python-Markdown has never supported or tried to support this. Fourth, it's not clear how this would be declared differently from setting the class on the list item in a way that is easily understood by both the reader and writer of the source text.
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