mirror of
https://github.com/dragonish/obsidian-heading-decorator.git
synced 2026-07-22 05:42:05 +00:00
perf(dom): reduce unnecessary conversions
This commit is contained in:
parent
f417094d63
commit
ef26e6eec9
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), outline);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue