Skip to content

Commit

Permalink
Don't double-escape text from headers
Browse files Browse the repository at this point in the history
  • Loading branch information
vrugtehagel committed Aug 24, 2024
1 parent 918c49f commit d27afcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vrugtehagel/eleventy-document-outline",
"version": "0.1.6",
"version": "0.1.7",
"exports": "./mod.ts",
"publish": {
"include": ["src/**", "mod.ts", "README.md"]
Expand Down
2 changes: 1 addition & 1 deletion src/find-headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function findHeaders(
if (mode != "dynamic") continue;
markupChanged = true;
}
const text: string = rawHeader.rawText;
const text: string = rawHeader.text;
const id: string = rawHeader.getAttribute("id") || slugify(text);
const tag: string = rawHeader.tagName.toLowerCase();
headers.push({ id, text, tag });
Expand Down

0 comments on commit d27afcf

Please sign in to comment.