Skip to content

Commit

Permalink
Merge pull request #850 from savetheclocktower/markdown-emoji-off-by-…
Browse files Browse the repository at this point in the history
…default

Default to no emoji when rendering Markdown
  • Loading branch information
savetheclocktower authored Jan 3, 2024
2 parents f4e4aad + 5dc12bd commit 69e4224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function renderMarkdown(content, givenOpts = {}) {
sanitizeAllowSelfClose: true,
breaks: false, // Convert `\n` in paragraphs into `<br>`
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
Expand Down

0 comments on commit 69e4224

Please sign in to comment.