mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
make sure the headings in TOC contain text only, https://github.com/zadam/trilium-web-clipper/issues/42
This commit is contained in:
parent
52812c27a1
commit
9114b1befb
@ -143,7 +143,9 @@ export default class TocWidget extends CollapsibleWidget {
|
|||||||
//
|
//
|
||||||
// Create the list item and set up the click callback
|
// Create the list item and set up the click callback
|
||||||
//
|
//
|
||||||
const $li = $('<li style="cursor:pointer">' + m[2] + '</li>');
|
|
||||||
|
const headingText = $("<div>").html(m[2]).text();
|
||||||
|
const $li = $('<li style="cursor:pointer">').text(headingText);
|
||||||
// XXX Do this with CSS? How to inject CSS in doRender?
|
// XXX Do this with CSS? How to inject CSS in doRender?
|
||||||
$li.hover(function () {
|
$li.hover(function () {
|
||||||
$(this).css("font-weight", "bold");
|
$(this).css("font-weight", "bold");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user