aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
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) {