Improve markdown rendering

This commit is contained in:
Yarmo Mackenbach 2020-08-28 01:37:20 +02:00
parent a3842b3da1
commit 14af2e34b9
2 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,7 @@ const router = require('express').Router();
const md = require('markdown-it')({typographer: true});
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-title'));

View file

@ -162,6 +162,9 @@ a {
a.bigBtn {
margin-right: 8px;
}
a.header-anchor {
text-decoration: none;
}
ul {
list-style: "- ";
}