mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop,Mobile: Resolves #9594: Fix table-of-contents links to headings with duplicate content (#9610)
This commit is contained in:
parent
7e8c87e908
commit
430f73c47a
@ -0,0 +1,3 @@
|
||||
<nav class="table-of-contents"><ul><li><a href="#test">test</a></li><li><a href="#test-2">test</a></li><li><a href="#test2">test2</a></li></ul></nav><h1 id="test">test</h1>
|
||||
<h1 id="test-2">test</h1>
|
||||
<h1 id="test2">test2</h1>
|
5
packages/app-cli/tests/md_to_html/toc_duplicate_items.md
Normal file
5
packages/app-cli/tests/md_to_html/toc_duplicate_items.md
Normal file
@ -0,0 +1,5 @@
|
||||
[toc]
|
||||
|
||||
# test
|
||||
# test
|
||||
# test2
|
@ -88,7 +88,7 @@ const plugins: RendererPlugins = {
|
||||
emoji: { module: require('markdown-it-emoji') },
|
||||
insert: { module: require('markdown-it-ins') },
|
||||
multitable: { module: require('markdown-it-multimd-table'), options: { multiline: true, rowspan: true, headerless: true } },
|
||||
toc: { module: require('markdown-it-toc-done-right'), options: { listType: 'ul', slugify: slugify } },
|
||||
toc: { module: require('markdown-it-toc-done-right'), options: { listType: 'ul', slugify: slugify, uniqueSlugStartIndex: 2 } },
|
||||
expand_tabs: { module: require('markdown-it-expand-tabs'), options: { tabWidth: 4 } },
|
||||
};
|
||||
const defaultNoteStyle = require('./defaultNoteStyle');
|
||||
|
Loading…
Reference in New Issue
Block a user