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
▹ 000051
Headers require extra returns
Anonymous users must enter
captcha
below.
Don't put anything here
Don't put anything here
Ticket Information
Ticket Title
**Never mind - it would appear we were running on an old build; works in 2.0** It would appear that headers require you to leave a blank space after them, which doesn't appear to be in the Markdown spec: Python 2.4.4 (#2, Oct 22 2008, 19:52:44) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import markdown >>> mystring = """# This is H1 # ... and some body text ... ... ## This is H2 ... and more body text ... ... ### This is H3 # ... and the last bit of body text""" >>> html = markdown.markdown(mystring) >>> html '\n\n<h1> This is H1 </h1>\n\n<h2> This is H2</h2>\n\n<h3> This is H3 </h3>\n\n' >>> Using exactly the same code in the Dingus tool on the markdown website produces the expected result ###Comments __Waylan on 2/19/2010__ What version of Python-Markdown are you using? From my testing, this issue has been fixed some time ago. At least since version 2.0 (we are currently at 2.0.3).
Reported by
Assigned to
Status
open
someday
resolved
closed
Resolution
n.a.
fixed
wontfix
Don't put anything here
Advanced Fields
Don't put anything here
Priority
unassigned
high
medium
low
Resolution Explanation
Component
Don't put anything here
About This Edit
Minor Edit
Edit Summary
Don't put anything here
save
preview
cancel
Powered by
Sputnik
|
XHTML 1.1