mirror of
https://github.com/dragonish/obsidian-heading-decorator.git
synced 2026-07-22 05:42:05 +00:00
parent
f5ee7f1bc3
commit
63395f12bf
1 changed files with 4 additions and 4 deletions
|
|
@ -176,10 +176,10 @@ export function decorateOutlineElement(
|
|||
/**
|
||||
* Compare heading text.
|
||||
*
|
||||
* @param l The left heading text.
|
||||
* @param r The right heading text.
|
||||
* @param source The source heading text.
|
||||
* @param outline The outline heading text.
|
||||
* @returns true if the two headings are equal, false otherwise.
|
||||
*/
|
||||
export function compareHeadingText(l: string, r: string): boolean {
|
||||
return compareMarkdownText(htmlToMarkdown(l), htmlToMarkdown(r));
|
||||
export function compareHeadingText(source: string, outline: string): boolean {
|
||||
return compareMarkdownText(htmlToMarkdown(source), htmlToMarkdown(outline));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue