- gitlist.git
- src
- browser
- js
- markdown.js
This file ( 1kB ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
$(async function () {
const mdContent = $('#p3x-gitlist-readme');
if (mdContent.length) {
await import(
/* webpackChunkName: "marked" */
/* webpackPrefetch: true */
'../marked'
)
const twemojiSettings = require('./settings').twemoji;
const html = marked(mdContent.text(), {
mangle: false,
headerIds: false,
renderer: window.gitlist.markdownRenderer
});
mdContent.html(twemoji.parse(html, twemojiSettings));
}
});
window.gitlist.renderMarkdown = async(options) => {
await import(
/* webpackChunkName: "marked" */
/* webpackPrefetch: true */
'../marked'
)
const {markdown} = options;
const twemojiSettings = require('./settings').twemoji;
const markedHtml = marked(markdown, {
mangle: false,
headerIds: false,
renderer: window.gitlist.markdownRenderer
});
const html = twemoji.parse(markedHtml, twemojiSettings)
return html;
}