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:
parent
96f07aa6b7
commit
7dae614535
1 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,14 @@
|
||||||
import Importabular from "importabular"
|
import Importabular from "importabular"
|
||||||
import showdown from "showdown"
|
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
|
let editor
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue