We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0341db4 commit 6edbbe7Copy full SHA for 6edbbe7
lib/utils/md-renderer.ts
@@ -53,7 +53,8 @@ export class MdRenderer {
53
}
54
55
saveHeading(title: string, parent:MarkdownHeading = {id:null, children: this.headings}) :MarkdownHeading {
56
- let slug = slugify(title);
+ // if title contains some non-ASCII characters (e.g. chinese) slugify returns empty string
57
+ let slug = slugify(title) || title;
58
let id = slug;
59
if (parent && parent.id) id = `${parent.id}/${id}`;
60
parent.children = parent.children || {};
0 commit comments