Skip to content

Commit 0f0b4c9

Browse files
committed
style: format code for improved readability in markdown-converter.ts
- Adjusted formatting of the HTML parsing code for better clarity and consistency.
1 parent 10cd2f7 commit 0f0b4c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/markdown-converter.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export class MarkdownConverter {
3434

3535
// Parse HTML and convert to Telegraph nodes using linkedom
3636
const parser = new DOMParser();
37-
const document = parser.parseFromString(`<div>${cleanedHtml}</div>`, "text/html");
37+
const document = parser.parseFromString(
38+
`<div>${cleanedHtml}</div>`,
39+
"text/html"
40+
);
3841
const container = document.querySelector("div");
3942

4043
if (container) {

0 commit comments

Comments
 (0)