Skip to content

Code in posts

You can include one code block per duum. It is meant for a short snippet, not for pasting an entire repository.

Use three tildes and the language:

const sum = (a: number, b: number) => a + b

Tips:

  • Trim the example down to what matters.
  • Remove tokens, keys and private paths.
  • Explain what fails and what you expected.
  • If it is long, link to the repository.

Code is highlighted with Shiki. If the language is not detected, it is shown as plain text.

Do not publish other people’s code without respecting its licence.