- gitlist.git
- src
- browser
- js
- commits-list.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.
$(() => {
const constructMarkdown = () => {
const $commitListTables = $('.p3x-gitlist-commits-list:not(.p3x-gitlist-commits-list-rendered)');
if ($commitListTables.length > 0) {
for(let commitTable of $commitListTables) {
const $commitTable = $(commitTable)
$commitTable.addClass('p3x-gitlist-commits-list-rendered')
//console.log(commitTable)
const $markedItems = $commitTable.find('.p3x-gitlist-commits-list-message')
for(let markedItem of $markedItems) {
//console.log(markedItem)
const $markedItem = $(markedItem)
const html = window.gitlist.renderMarkdown({
markdown: $markedItem.html()
})
//console.log(html)
$markedItem.html(html)
}
}
}
}
constructMarkdown();
window.gitlist.constructCommitsListConstructMarkdown = constructMarkdown;
})