Enable QOL features in showdown extension

This commit is contained in:
Chris Wilson 2021-09-07 19:22:04 -04:00
parent 3e4e69735e
commit 6352056528
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@ window.addEventListener('load', () => {
ajax.send();
}).then((results) => {
// Populate page with HTML generated from markdown
showdown.setOption('tables', true);
showdown.setOption('strikethrough', true);
showdown.setOption('simpleLineBreaks', true);
showdown.setOption('literalMidWordUnderscores', true);
tutorialWrapper.innerHTML += (new showdown.Converter()).makeHtml(results);
adjustHeaderWidth();

View File

@ -20,6 +20,10 @@ window.addEventListener('load', () => {
ajax.send();
}).then((results) => {
// Populate page with HTML generated from markdown
showdown.setOption('tables', true);
showdown.setOption('strikethrough', true);
showdown.setOption('simpleLineBreaks', true);
showdown.setOption('literalMidWordUnderscores', true);
tutorialWrapper.innerHTML += (new showdown.Converter()).makeHtml(results);
adjustHeaderWidth();