feat(#169): add emoji support for markdown

This commit is contained in:
tdurieux
2023-04-21 13:23:34 +02:00
parent 3627096e63
commit 8ac3a66a30
5 changed files with 1951 additions and 0 deletions
+7
View File
@@ -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();