Can we have tabs in the code?
export function htmlIntoHast(html: string) {
// base Markdown -> MD AST
// @ts-ignore
let processor = unified().use(rehypeParse)
// // MD AST -> HTML AST
// @ts-ignore
processor = processor
// @ts-ignore
.use(remarkRehype, { allowDangerousHtml: true })
// @ts-ignore
// .use(rehypeSlug)
// @ts-ignore
.use(rehypeAutolinkHeadings)
const hast = processor.parse(html)
return hast
}
CSS
@media all and (max-width: 800px) {
li abbr::after {
content: attr(title);
}
}