Skip to content

Commit b04dcfa

Browse files
committed
fix: deno fmt
1 parent b17a49b commit b04dcfa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mod.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export class Renderer extends Marked.Renderer {
3939
this.#slugger = new GitHubSlugger();
4040
}
4141

42-
override heading(text: string, level: 1 | 2 | 3 | 4 | 5 | 6, raw: string): string {
42+
override heading(
43+
text: string,
44+
level: 1 | 2 | 3 | 4 | 5 | 6,
45+
raw: string,
46+
): string {
4347
const slug = this.#slugger.slug(raw);
4448
return `<h${level} id="${slug}"><a class="anchor" aria-hidden="true" tabindex="-1" href="#${slug}"><svg class="octicon octicon-link" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a>${text}</h${level}>\n`;
4549
}

0 commit comments

Comments
 (0)