Writing an Article in Markdown

Published on
Authors

Here's a sample blog post written in markdown format

Inline Highlighting

Sample of inline highlighting sum = parseInt(num1) + parseInt(num2)

Code Blocks

Some Typescript code

/**
 * Normalize the article item, convert the `slug`, `path` to suite the `next-intl`
 * @param post Blog item
 * @returns
 */
export const normalizeArticleItem = (post: Blog) => {
  const { slug } = parseArticleSlugPath(post.slug);
  return {
    ...post,
    slug,
    path: `article/${slug}`,
  };

Some Python code 🐍

def say_hello():
    print("Hello, Markdown!")

say_hello()