Adds [^1] footnote syntax support to VS Code's built-in Markdown preview
- Adds support for [^1] syntax to VS Code's built-in markdown preview
Adds [^1] footnote syntax support to VS Code's built-in Markdown preview
Home Page: https://marketplace.visualstudio.com/items?itemName=bierner.markdown-footnotes
License: MIT License
Hi, would it be possible to extend it to notebook cells which are in Markdown ?
Spooky protist at a distance. [^PathogenicProtists]
1. <details open> <summary> <h2> Bibliography </h2> </summary>
1. [^PathogenicProtists]: https://courses.lumenlearning.com/wm-biology2/chapter/pathogenic-protists/#:~:text=A%20small%20number,of%20food%20crops
</details>
renders as
Spooky protist at a distance. 1
Bibliography
since getting the update yesterday, footnotes render as inline text, exactly as if this extension were uninstalled
I'm running VSCode 1.73.1 on Windows 11
not sure if it's relevant, but your Mermaid extension, as well as a Katex extension do continue to work, implying it's not a VSCode change
Hi,
footnote is useful for some kinds of writing, however we have to input [^ft]
, [^ft]:
and jump to the location of footnotes manually.
I wish you could support this function:
[^ftNum]
is created in the cursor location, [^ftNum]:
in the end of the document.Looking forward to your reply.
Hello there,
for long documents it would be really nice if you could
I will just put it here for later reference and might implement it myself at a later point in time if nobody else has.
Thanks for your extension by the way :)
After cloning a repo, this extension takes 12s to activate (total initial extension activation time was 30s, so this extension accounted for over a third of that time). Since it looks like it doesn't declare a specific activation event I'm wondering if we can defer its activation or reduce the amount of work that happens in its activate
method.
After installed the extension the VSCode preview for markdown not work.
In the Windows Log appears:
[renderer1] [error] Cannot read property 'type' of undefined: TypeError: Cannot read property 'type' of undefined
at Array.footnote_tail (C:\Users\foo\.vscode\extensions\bierner.markdown-footnotes-0.0.4\node_modules\markdown-it-footnote\index.js:335:49)
at Core.process (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\node_modules\markdown-it\lib\parser_core.js:51:13)
at MarkdownIt.parse (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\node_modules\markdown-it\lib\index.js:523:13)
at MarkdownEngine.parse (c:\Program Files\Microsoft VS Code\resources\app\extensions\markdown-language-features\out\markdownEngine.js:88:23)
at <anonymous>
I have try to search the cause but without success.
Since updating to the newest Version of VS Code (1.29.1), no preview can be displayed for markdown-files, when markdown-footnotes is enabled.
This is true with and without other markdown-extensions like Markdown All in One enabled.
Not sure if this bug comes from this extension or from Marldown All In One.
When you do CTRL+SHIFT+P -> 'Marldown All In One: Print current document to HTML' the footnotes are not exported in a way that is consistent with the preview.
Eg. They are displayed in the HTML "as-is" in source form.
See also: zhang-gh/vscode-markdown#605
Example from GitHub:
[^1]: My reference.
[^2]: Every new line should be prefixed with 2 spaces.
This allows you to have a footnote with multiple lines.
[^note]:
Named footnotes will still render with numbers instead of the text but allow easier identification and linking.
This footnote also has been made with a different syntax using 4 spaces for new lines.
The third example ([^note]
) doesn't render as a footnote.
Same when indenting by 2 spaces.
This would make it more accessible for people using VSCodium and for some other Editors.
https://github.com/eclipse/openvsx/wiki/Publishing-Extensions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.