diff --git a/routes/main.js b/routes/main.js index 58b4817..30d7339 100644 --- a/routes/main.js +++ b/routes/main.js @@ -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')); diff --git a/static/styles.css b/static/styles.css index 5f0b80e..129eed5 100644 --- a/static/styles.css +++ b/static/styles.css @@ -162,6 +162,9 @@ a { a.bigBtn { margin-right: 8px; } +a.header-anchor { + text-decoration: none; +} ul { list-style: "- "; }