GHHG10's picture
download
raw
444 Bytes
import { marked, type Tokens } from "marked"
const renderer = new marked.Renderer()
renderer.link = ({ href, title, text }: Tokens.Link) => {
const titleAttr = title ? ` title="${title}"` : ""
return `<a href="${href}"${titleAttr} class="external-link" target="_blank" rel="noopener noreferrer">${text}</a>`
}
export function parseMarkdown(input: string) {
return marked(input, {
renderer,
breaks: false,
gfm: true,
})
}

Xet Storage Details

Size:
444 Bytes
·
Xet hash:
15ad676d2b39cf0e82b9a9ad6409faeae9b0e3f556174c6cd38aa4ef44cbef9c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.