diff options
author | BuildTools <unconfigured@null.spigotmc.org> | 2017-09-27 15:44:53 +0200 |
---|---|---|
committer | BuildTools <unconfigured@null.spigotmc.org> | 2017-09-27 15:44:53 +0200 |
commit | 7d3c9b9eef8a9b8a7ade150622df9baad675d227 (patch) | |
tree | d3b9d0b2cf6badd8f0d1faf7dab882dbe019596d | |
parent | files (diff) |
markdown options
-rw-r--r-- | app.js | 7 | ||||
-rw-r--r-- | public/css/style.css | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -9,6 +9,13 @@ const converter = new showdown.Converter(); const app = express(); const path = 'md'; +converter.setOption('parseImgDimensions', 'true'); +converter.setOption('literalMidWordUnderscores', 'true'); +converter.setOption('literalMidWordAsterisks', 'true'); +converter.setOption('strikethrough', 'true'); +converter.setOption('tables', 'true'); +converter.setOption('tasklists', 'true'); + app.use(express.static('public')); app.get('/' + path + '/*', function(req, res) { diff --git a/public/css/style.css b/public/css/style.css index 38ce883..9d7ce73 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -643,3 +643,7 @@ color: currentColor; .file { list-style: circle; } +.file a { + padding-top: 5px; + padding-bottom: 5px; +} |