$(async() => { const subjects = $('.p3x-gitlist-treegraph-subject') if (subjects) { for (let subject of subjects) { const html = await window.gitlist.renderMarkdown({ markdown: subject.innerHTML }) subject.innerHTML = html // console.log(html) } } }) window.gitlist.treegraph = () => { if (!document.getElementById('graph-canvas')) { return; } const log = $("#p3x-gitlist-treegraph-log"); if (log) { const graphList = []; $("#graph-raw-list li span.node-relation").each(function () { graphList.push($(this).text().trim()); }) const $li = $('#rev-list li'); $li.each(function () { const $this = $(this) const text = $this.find('.p3x-gitlist-treegraph-subject').text() if (text !== undefined && text !== '') { $this.attr('title', text) } }) global.gitGraph(document.getElementById('graph-canvas'), graphList); } }