diff --git a/packages/markdown-preview/lib/renderer.js b/packages/markdown-preview/lib/renderer.js index a0d71420e7..636ad68c54 100644 --- a/packages/markdown-preview/lib/renderer.js +++ b/packages/markdown-preview/lib/renderer.js @@ -35,6 +35,7 @@ exports.toDOMFragment = async function (text, filePath, grammar, callback) { renderMode: "fragment", filePath: filePath, breaks: atom.config.get('markdown-preview.breakOnSingleNewline'), + useDefaultEmoji: true, sanitizeAllowUnknownProtocols: atom.config.get('markdown-preview.allowUnsafeProtocols') } ); @@ -75,6 +76,7 @@ exports.toHTML = async function (text, filePath, grammar) { renderMode: "full", filePath: filePath, breaks: atom.config.get('markdown-preview.breakOnSingleNewline'), + useDefaultEmoji: true, sanitizeAllowUnknownProtocols: atom.config.get('markdown-preview.allowUnsafeProtocols') } ); @@ -148,7 +150,7 @@ var render = function (text, filePath) { return fragment } -function renderYamlTable (variables) { +function renderYamlTable(variables) { const entries = Object.entries(variables) if (!entries.length) { diff --git a/src/ui.js b/src/ui.js index be506dc78a..3ee3fc3c67 100644 --- a/src/ui.js +++ b/src/ui.js @@ -83,7 +83,7 @@ function renderMarkdown(content, givenOpts = {}) { sanitizeAllowSelfClose: true, breaks: false, // Convert `\n` in paragraphs into `
` handleFrontMatter: true, // Determines if Front Matter content should be parsed - useDefaultEmoji: true, // Use `markdown-it-emoji` + useDefaultEmoji: false, // Use `markdown-it-emoji` useGitHubHeadings: false, // Use `markdown-it-github-headings` useTaskCheckbox: true, // Use `markdown-it-task-checkbox` taskCheckboxDisabled: true, // `markdown-it-task-checkbox`: Disable checkbox interactivity