Added nested list support

This commit is contained in:
Sodbileg Gansukh
2023-06-28 18:25:13 +08:00
parent fa76f77006
commit d75ffc78ac
9 changed files with 28 additions and 18 deletions

10
assets/js/nested-list.js Normal file
View File

@ -0,0 +1,10 @@
(function () {
const content = document.querySelector('.gh-content');
if (!content) return;
content.querySelectorAll('ul li, ol li').forEach(function (item) {
if (item.querySelector('ul, ol')) {
item.classList.add('kg-nested-list-item');
}
});
})();