marp-team / marpit

The skinny framework for creating slide deck from Markdown
https://marpit.marp.app/
MIT License
963 stars 46 forks source link

the footnote in markdown syntax[^1] does not working properly #350

Closed GXY2017 closed 1 year ago

GXY2017 commented 1 year ago

Version of Marp Tool

marp for vs code

Operating System

Windows

Environment

VS Code Version: 1.74.3 (user setup) Electron: 19.1.8 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.22621 Sandboxed: Yes

How to reproduce

This is a usual markdown footnote

## try footnote, this line shows normal. But the click takes you to an error page.  [^1]

[^1]: this is the page: https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/xxx/Marp_Basic/

Expected behavior

show the footnotes on the slide.

Actual behavior

  1. it opens a page in browser.
  2. no footnotes on the slides.
  3. the [^1] in content does not hop up to the right corner.

Additional information

No response

yhatt commented 1 year ago

Duplicate of marp-team/marp#150.

Marpit respects CommonMark spec that have no footnote support. Make and use a Marpit/markdown-it plugin for footnotes.

Marpit and Marp Core must follow CommonMark, and footnote is not part of CommonMark so we have not any plan for built-in support. Marp team has a policy that we should not break CommonMark as far as possible.

We have well-documented Marpit API to help making third-party plugins by our community. I wish that community develops and provides Marpit plugin for footnote per each slides.

https://github.com/marp-team/marp-cli/issues/226