mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-25 18:37:47 +02:00
feat(#169): add emoji support for markdown
This commit is contained in:
@@ -110,6 +110,13 @@ function parseGithubUrl(url) {
|
||||
}
|
||||
}
|
||||
|
||||
marked.use(
|
||||
markedEmoji({
|
||||
emojis: githubEmojis,
|
||||
unicode: false,
|
||||
})
|
||||
);
|
||||
|
||||
function renderMD(md, baseUrl) {
|
||||
md = contentAbs2Relative(md);
|
||||
const renderer = new marked.Renderer();
|
||||
|
||||
Reference in New Issue
Block a user