Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in footnote handling. #250

Open
ewankirk opened this issue Mar 28, 2017 · 2 comments
Open

Bug in footnote handling. #250

ewankirk opened this issue Mar 28, 2017 · 2 comments

Comments

@ewankirk
Copy link
Contributor

If there is a single space on the line following a footnote, the footnote regex gets a bit
confused.

import markdown2

text = '''
Here is some markdown with a footnote[^myfootnote] embedded within it.

[^myfootnote]: I define the footnote here on 
    multiple lines but the line below contains *one* space but looks blank
 

'''
markdowner = markdown2.Markdown()
markdowner.convert(text)

This produces the following html output.

<p>Here is some markdown with a footnote[^myfootnote] embedded 
within it.</p>\n\n<pre><code>multiple lines but the line below 
contains *one* space but looks blank\n</code></pre>\n'
@nicholasserra
Copy link
Collaborator

Thanks for the report!

@davidlowryduda
Copy link
Contributor

I wonder if I added in this bug when I last touched the footnotes. I'll look into this when I get the chance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants