Comments (4)
I suspect what causes the references to be displayed verbatim is the fact that the markdown AST stringifier remark-stringify used internally translates the colon of the footnote into an HTML entity sequence, so instead of
This is a text with a footnote [^footnote].
[^footnote]: This is correct
it renders
This is a text with a footnote [^footnote].
[^footnote]: This is wrong
I played around with the respective remark-stringify options options.gfm
and options.entities
with no success so far. Part of the problem could be that there is no distinct representation of footnotes in the AST produced by remark-parse which adheres to the CommonMark Specfication. This spec, which is currently at v0.29, doesn't specify footnotes, so they must be considered custom markdown extensions of the markdown-it toolsuite used with vuepress.
This is not to say it's impossible to solve but just to provide a bit more context to the issue and why footnotes do not work out of the box at the moment.
from glossarify-md.
Okay turned out to be easier than expected. After a look at the source files I found that remark-parse and remark-stringify both already implement support for footnotes but the feature must be enabled explicitely with the parser and options.footnotes
(instead of the stringifier where I looked first).
Since they are not yet officially part of the CommonMark Spec glossarify-md v2.1.0 will also require explicit feature toggling by a separate boolean config option experimentalFootnotes
. When set to true footnotes will be rendered according to Pandoc syntax as expected by markdown-it-footnote.
from glossarify-md.
Thanks for the ultra fast fix. I'll bump up the Version on monday.
from glossarify-md.
Works! Thanks!
from glossarify-md.
Related Issues (20)
- User Story: Append pandoc-style IDs
- Export and Import a Glossary Index Source for reuse HOT 4
- User Story: Vocabulary URIs HOT 1
- User Story: Structured Export Format HOT 1
- User Story: Import terms from export format
- New node support matrix (glossarify-md v6.0.0)
- '--init --new' wrongly assumes './docs/glossary.md' exists
- User Story: Limit auto-linking based on directory grouping of files
- User Story: Path Rewrites HOT 2
- Identifier-based cross-linking doesn't provide glossary term preview for bottom page links HOT 1
- Hugo and glossarify-md: Different flavours of Markdown HOT 1
- User Story: Watch Mode
- User Story: Revisit Term Attribute Syntax
- New config refers to outdated config release version
- User Story: CSV import
- One empty heading breaks glossarify-md, doesn't render any terms, terminates HOT 2
- Type Error: Cannot convert a Symbol value to a string
- User Story: Support Front Matter HOT 1
- User Story: Adding the glossary terms to a DOCX format and link to them instead of to the glossary.md HOT 3
- User Story: Context-sensitive linking and disambiguation for multiple glossaries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glossarify-md.