Skip to content

Markdown

Prettyfi markdown

Collaborative markdown editing

Best workflow for collaborative markdown pages:

  • Download markdown file
  • Download and locally reference all images using Markdown articles tool

    markdown_tool.py Openappstack\ demoweek\ blogpost.md

Hedgedoc (formerly codiMD / hackMD)

Heddoc cli tool

Usage:

export HEDGEDOC_SERVER='https://demo.hedgedoc.org'
hedgedoc export --md MXlAkGw4RgeCd6hlPWcRIQ /tmp/Openappstack.md

markdown-articles-tool

markdown_articles_tool

Parse markdown article, download images and replace image URL's to local paths

markdown_tool.py --images-publicpath '/images' Openappstack.md

Styles

see ~/projects/markup/markdown/syntax.md as example

Syntax

Code block syntax highlighting

Show available github-linguist languages and files extensions:

curl --no-progress-meter \
  https://raw.githubusercontent.com/github-linguist/linguist/refs/heads/main/lib/linguist/languages.yml\
  | yq 'to_entries | .[] | .key + ": " + (.value.extensions | @csv)'

Markdown server

Madness

Start madness serving current directory:

docker run --rm -it -v $PWD:/docs -p 3000:3000 dannyben/madness

or alias

madness

Other tools

Collapsilbe section

<details>
<summary>Click me</summary>

### Heading

1. Foo
2. Bar
   - Baz
   - Qux

### Some Code

```js
function logSomething(something) {
  console.log("Something", something);
}
```

</details>