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

convert handles markdown footnotes, but build does not #10

Open
digitalronin opened this issue Oct 18, 2022 · 0 comments
Open

convert handles markdown footnotes, but build does not #10

digitalronin opened this issue Oct 18, 2022 · 0 comments

Comments

@digitalronin
Copy link

Given an empty directory out, and in/index.mmd containing:

# Test

Here is some text referencing footnote one[^1].

[^1]: This is a footnote.

Then running npx mpx build --input in --output out does not handle the footnote correctly. You end up with html that renders like this in a browser:

Here is some text referencing footnote one[^1].
[^1]: This is a footnote.

(where the text [^1] is just plain text, not a link)

However, npx mpx convert in/index.mmd out/index.html converts the footnote correctly, so that you end up with html that renders like this:

Here is some text referencing footnote one[1].
This is a footnote. ↩︎

(where the [1] is a link to the footnote, and the ↩︎ is a link back to the relevant point in the document)

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

1 participant