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 /app.js | |
parent | files (diff) |
markdown options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 7 |
1 files changed, 7 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) { |