Improve toc

This commit is contained in:
yflory
2019-02-19 11:06:25 +01:00
parent 7b084807bb
commit 03e94ae598
2 changed files with 9 additions and 2 deletions

View File

@@ -45,8 +45,9 @@ define([
var a = h('a.cp-md-toc-link', {
href: '#',
'data-href': obj.id,
title: obj.title
}, obj.title);
content.push(h('p.cp-md-toc-'+level, a));
content.push(h('p.cp-md-toc-'+level, ['• ', a]));
});
return h('div.cp-md-toc', content).outerHTML;
};