2025 08 03 Markdown
Finally I have set up my markdown properly.
It starts with Helix: Setup for Markdown. It involves installing dprint. Although it mentions only helix, I have created similar configurations for zed as well.
Below are the configurations files for the respective editors.
languages.toml
for helix:
[[language]]
name = "go"
auto-format = true
formatter = { command = "goimports" }
[[language]]
name = "rust"
auto-format = true
[[language]]
name = "c"
auto-format = true
[[language]]
name = "markdown"
auto-format = true
formatter = {command = "dprint", args = ["fmt", "--stdin", "md"]}
settings.json
for zed:
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"theme": "One Dark Pro",
"vim_mode": false,
"telemetry": {
"metrics": false
},
"ui_font_size": 16,
"buffer_font_size": 16,
"features": {
"copilot": false
},
"cursor_blink": false,
"relative_line_numbers": true,
"scrollbar": {
"show": "always"
},
"indent_guides": {
"enabled": true,
"coloring": "indent_aware"
},
"wrap_guides": [90],
"show_wrap_guides": true,
"languages": {
"Markdown": {
"tab_size": 4,
"formatter": {
"external": {
"command": "dprint",
"arguments": ["fmt", "--stdin", "md"]
}
},
"format_on_save": "on"
}
}
}
I have also tidied up some of my blogs and refreshed my markdown writing environment. I will write more in the future, to make room in my mind.