Add extra options to markdown converter

Now, bare URLs are auto-converted, links are opened in a new
window, the ~~strikethrough~~ format also works, and last but not
the least, ChipChoc is now emoji-enabled!
This commit is contained in:
Badri Sunderarajan 2021-09-14 14:48:22 +05:30
parent 96f07aa6b7
commit 7dae614535

View file

@ -2,7 +2,14 @@
import Importabular from "importabular"
import showdown from "showdown"
let converter = new showdown.Converter()
let converter = new showdown.Converter({
simplifiedAutoLink: true, // automatically convert links...
excludeTrailingPunctuationFromURLs: true, // ...but not the trailing punctuation
openLinksInNewWindow: true, // don't forget to open in new window!
simpleLineBreaks: true, // use two line breaks to start a new paragraph
emoji: true, // because why not 😉
strikethrough: true, // ~~that also~~
})
let editor