forked from Mirrors/keyoxide-web
Improve markdown rendering
This commit is contained in:
parent
a3842b3da1
commit
14af2e34b9
2 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,7 @@ const router = require('express').Router();
|
||||||
const md = require('markdown-it')({typographer: true});
|
const md = require('markdown-it')({typographer: true});
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
md.use(require("markdown-it-anchor"));
|
md.use(require("markdown-it-anchor"), { "level": 2, "permalink": true, "permalinkClass": 'header-anchor', "permalinkSymbol": '¶', "permalinkBefore": false });
|
||||||
md.use(require("markdown-it-table-of-contents"), { "includeLevel": [2, 3], "listType": "ol" });
|
md.use(require("markdown-it-table-of-contents"), { "includeLevel": [2, 3], "listType": "ol" });
|
||||||
md.use(require('markdown-it-title'));
|
md.use(require('markdown-it-title'));
|
||||||
|
|
||||||
|
|
|
@ -162,6 +162,9 @@ a {
|
||||||
a.bigBtn {
|
a.bigBtn {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
a.header-anchor {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
ul {
|
ul {
|
||||||
list-style: "- ";
|
list-style: "- ";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue