You've already forked joplin
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:
committed by
Laurent Cozic
parent
d02ced59f8
commit
d91b3624e9
@ -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) => {
|
||||
|
Reference in New Issue
Block a user