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

Foot note and check mark not working #2

Closed
yw662 opened this issue Mar 28, 2021 · 2 comments
Closed

Foot note and check mark not working #2

yw662 opened this issue Mar 28, 2021 · 2 comments

Comments

@yw662
Copy link

yw662 commented Mar 28, 2021

The testing markdown is like this:

#Asdf

asdsaf\`asdf\`asdf[^1]
[x] asdf
[ ] asdf
[^1]: This is a footnote content.

However, it gives out text tokens instead of footnoteReference or taskListMarker.
Does the underlying rust library really support foot note or task list mark ?

@arguablykomodo
Copy link
Owner

Have you enabled the footnotes and tasklists options? tokens(yourText, { footnotes: true, tasklists: true }) should do the trick.

@arguablykomodo
Copy link
Owner

On further inspection, it seems your example text doesn't work due to wrong syntax. A working example would be:

# Asdf

asdsaf\`asdf\`asdf[^1]
- [x] asdf
- [ ] asdf

[^1]: This is a footnote content.

The parser requires:

  • A space after the # on headings.
  • An empty line between the end of a list and a footnote definition.
  • Dashes on tasklists, just like ordered or unordered lists.

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

2 participants