⚡ Markdown parser compatible with Tailwind Css. Prism.js themes can be found here.
Get the file from Releases, get styles from here
// Initialized
const Parser = new Tayparser();
// Parse Markdown
const MarkdownCode = `
# Blog Post
`;
const Code = Parser.parse(MarkdownCode);
console.log(Code);
// Highlight All <pre> Snippets
Prism.highlightAll();
// Escape HTML
const Markdown = new TailDown({ escapeHTML: true });
const Markdown = new TailDown({
a: {
customClass: "hover:text-blue-500",
extendStyle: "display: block;",
},
h3: {
customClass: "text-gray-600",
extendStyle: "display: block;",
},
});