1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Desktop, Mobile: Add typographer support (#1987)

* add typographer support

* add info to readme/markdown.md
This commit is contained in:
Helmut K. C. Tessarek
2019-10-14 18:01:58 -04:00
committed by Laurent Cozic
parent d02ced59f8
commit d91b3624e9
3 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class MdToHtml {
}
const breaks_ = Setting.value('markdown.softbreaks') ? false : true;
const typographer_ = Setting.value('markdown.typographer') ? true : false;
const cacheKey = md5(escape(body + JSON.stringify(options) + JSON.stringify(style)));
const cachedOutput = this.cachedOutputs_[cacheKey];
@ -75,6 +76,7 @@ class MdToHtml {
const markdownIt = new MarkdownIt({
breaks: breaks_,
typographer: typographer_,
linkify: true,
html: true,
highlight: (str, lang) => {