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 5e348ce commit 62394e7Copy full SHA for 62394e7
src/components/mermaid.tsx
@@ -4,7 +4,7 @@ import {useEffect} from 'react';
4
export default function Mermaid() {
5
useEffect(() => {
6
(async function () {
7
- const escapeHTML = str => {
+ const escapeHTML = (str: string) => {
8
return str.replace(/[&<>"']/g, function (match) {
9
const escapeMap = {
10
'&': '&',
0 commit comments