Skip to content

Commit

Permalink
added include plugin
Browse files Browse the repository at this point in the history
plugin = @gerhobbelt/markdown-it-include
It works but it won't look in the same folder as the file that is including it.
So you might need to specify an absolute path.
  • Loading branch information
janvda authored and janvda committed Aug 31, 2020
1 parent 5f18420 commit 82fbb12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nodes/lib/serveMarkdown.js
Expand Up @@ -80,6 +80,7 @@ module.exports = function serveMarkdown(RED, node){
.use(require('@gerhobbelt/markdown-it-attrs'))
.use(require('@gerhobbelt/markdown-it-footnote'))
.use(require('@gerhobbelt/markdown-it-emoji'))
.use(require('@gerhobbelt/markdown-it-include'))
.use(require('markdown-it-playground'))
.use(require('markdown-it-anchor'))
.use(require('markdown-it-table-of-contents'))
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -22,6 +22,7 @@
"@gerhobbelt/markdown-it-attrs": "^3.0.3-19",
"@gerhobbelt/markdown-it-emoji": "^1.2.1-5",
"@gerhobbelt/markdown-it-footnote": "^3.0.2-3",
"@gerhobbelt/markdown-it-include" : "^1.1.3-7",
"express": "^4.17.1",
"fs-extra": "^8.1.0",
"handlebars": "^4.7.2",
Expand Down

1 comment on commit 82fbb12

@janvda
Copy link
Owner

@janvda janvda commented on 82fbb12 Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds feature TotallyInformation#8
but won't look in same folder for the include file. 😢
So it is most likely necessary to specify the full absolute path.

E.g

!!!include(/remote/game/docs/rules_production_nl.md)!!!

Please sign in to comment.