Skip to content

Commit

Permalink
Opt into emoji in markdown-preview package
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Dec 31, 2023
1 parent aa871bc commit 5dc12bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/markdown-preview/lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
);
Expand Down Expand Up @@ -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')
}
);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 5dc12bd

Please sign in to comment.