GithubHelp home page GithubHelp logo

mjbvz / vscode-markdown-footnotes Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 2.0 1.08 MB

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

JavaScript 100.00%

vscode-markdown-footnotes's Introduction

Adds [^1] footnote syntax support to VS Code's built-in Markdown preview

Features

  • Adds support for [^1] syntax to VS Code's built-in markdown preview

vscode-markdown-footnotes's People

Contributors

mjbvz avatar

Stargazers

Hugo ChunHo Lin avatar Germán Freixinós avatar Václav Brožík avatar MILARTA avatar BPY avatar Iain Samuel McLean Elder avatar Boris avatar Matías Juarez avatar Teddy Xinyuan Chen avatar Tai-Jiun Fang avatar likui avatar  avatar André Alfonso Peixoto avatar Dmitry avatar Michael Horstmann avatar Zan M avatar Keegan Mullaney avatar Renan Wolf Pace avatar Amo Wu avatar Chris Hinkley avatar Clemens Harten avatar  avatar  avatar

Watchers

James Cloos avatar  avatar Germán Freixinós avatar  avatar

Forkers

taink mistobaan

vscode-markdown-footnotes's Issues

Footnotes in lists shouldn't render in a separate segment.

Incorrect rendering of a repeated footnote

Some text[^f1]

Some more text[^f1]

[^f1]: footnote 1

The Markdown above is rendered as:

Some text[1]

Some more text[1:1]

On GitHub, the rendering is correct:

Some text1

Some more text1

Footnotes

  1. footnote 1 2

v0.1.0 doesn't work

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

suggestion

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:

  • when we enter a hotkey, [^ftNum] is created in the cursor location,
  • then jump to a corresponding [^ftNum]: in the end of the document.

Looking forward to your reply.

go to definition / go to usage

Hello there,

for long documents it would be really nice if you could

  • go to definition on the [^ft] marker to go the actualy footnote text
  • do the reverse by if you are in the actualy footnote and cycle through all usages.

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 :)

Extension takes 12s to activate

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.

Error: Cannot read property 'type' of undefined

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.

  • VSCode version: 1.27.2
  • Node.js version: 8.9.3
  • OS: Windows 10 64 bit

No preview in VS Code 1.29.1

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.

Footnotes that start on the next line don't render as footnotes

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.