Skip to content

Commit

Permalink
fix escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Dec 6, 2023
1 parent f943f06 commit d556f7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { h } from "hastscript";
import { netlifyStatic } from "@astrojs/netlify";
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import { h } from "hastscript";
import { escape as htmlEscape } from "html-escaper";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import { escape } from "html-escaper";
import rehypeSlug from "rehype-slug";
import remarkToc from "remark-toc";

Expand All @@ -25,7 +25,7 @@ const anchorLinkSRLabel = (text: string) =>
h(
"span",
{ "is:raw": true, class: "sr-only" },
`Section titled ${escape(text)}`,
`Section titled ${htmlEscape(text)}`,
);

const autolinkConfig = {
Expand Down

0 comments on commit d556f7b

Please sign in to comment.