aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorBuildTools <unconfigured@null.spigotmc.org>2017-09-27 15:44:53 +0200
committerBuildTools <unconfigured@null.spigotmc.org>2017-09-27 15:44:53 +0200
commit7d3c9b9eef8a9b8a7ade150622df9baad675d227 (patch)
treed3b9d0b2cf6badd8f0d1faf7dab882dbe019596d /app.js
parentfiles (diff)
markdown options
Diffstat (limited to 'app.js')
-rw-r--r--app.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app.js b/app.js
index 684cbfd..e5f0ad5 100644
--- a/app.js
+++ b/app.js
@@ -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) {