mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
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 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'));
|
||||
|
||||
|
|
|
@ -162,6 +162,9 @@ a {
|
|||
a.bigBtn {
|
||||
margin-right: 8px;
|
||||
}
|
||||
a.header-anchor {
|
||||
text-decoration: none;
|
||||
}
|
||||
ul {
|
||||
list-style: "- ";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue