Markdown Parser Testing

Testing out markdown parser

📅 2022-02-15 Updated at 2023-04-22

Tags test

Markdown Parser Testing


This is lead paragraph

This is some quote

lorem ipsum for testing my custom blog engine. Powered by SvelteKit and power of turborepo. All blog posts are statically generated/rendered at build time.

On page endpoint page.server.ts, it reads the blog post and render it. @daydream-cafe/posts:build generate static JavaScript file that tell SvelteKit what path to prerender when building the app.

Posts are styled by @tailwindcss/typography. The code blocks are styled by highlight.js's css. And KaTeX is styled by thicc katex css with thicc fonts. Bundle Size is big for blog posts but not a big problem.

This markdown parser is tolerance to all kinds of chaos. (except XSS, all are my content so prob no problem)

  • "Double Quote"
  • \n boi, '\n'

Some random stuff.

this is h2

hello

  • list
  • bruh
  • hi

rickroll

ok

console.log("Hello World");
export const Button: FC<ButtonProps> = ({ children }) => {
  return <button className={styles.button}>{children}</button>;
};
-+-+[>>>>..]
#include <iostream>
// bruh don't do this
using namespace std;

int main() {
    std::cout << "Hello World!\n";
}

Weight test

italic

bold

bold italic

Backtick Test

hello

quotes

yo

const a = `${bruh} yes`;

some table

Day Stars
1 🌟🌟
2 🌟🌟
3 🌟🌟
4 🌟🌟
5 🌟🌟
6 table

bruh

an really long sentences Lorem ipsum dolor sit, amet consectetur adipisicing elit. Iure a harum libero consequuntur culpa eveniet accusantium laudantium quia, quod quos perspiciatis, quas commodi modi eos, ab quis. Mollitia odit assumenda molestias praesentium maxime fuga ut temporibus vero voluptatibus quisquam ipsum facilis quam officia aliquid cum, iste, error quae ab. Excepturi, ab? Reprehenderit, praesentium laboriosam? Suscipit quam molestiae tempore expedita vitae officia minima nesciunt, omnis recusandae assumenda autem repellendus libero optio, repudiandae voluptates harum ducimus nostrum odio, a quia illo sunt eaque. Quibusdam molestiae, deserunt eaque eligendi reiciendis dolorum quo, est eius dolor nemo voluptatem animi minus repellendus. Deserunt, consequuntur reiciendis!

NEW! Test Katex

pls work pls

∫0πcosx dx\int_{0}^{\pi} cosx\ dx

NEW!

Svelte should not be scared of {{ brackets }} {{{{{{{{{}}}}}}}}}

Source Code of this website is available on

GitHub