32 lines
474 B
Markdown
32 lines
474 B
Markdown
---
|
|
id:
|
|
aliases: []
|
|
tags:
|
|
- topic/automation
|
|
- topic/software
|
|
- status/fleeting
|
|
---
|
|
# Markdown Formatter CLI
|
|
|
|
create a custom markdown formatter to implement desired features.
|
|
|
|
## Character Substitution
|
|
|
|
* em dashes to `--`
|
|
* curved quotes to straight
|
|
|
|
## Semantic Line Breaks
|
|
|
|
Join inappropriately split clauses.
|
|
|
|
Always split on certain syntax:
|
|
* full stop
|
|
|
|
Conditionally split in other cases
|
|
to prevent column overflow
|
|
|
|
```
|
|
(?<=\.) (?=.{30,})
|
|
(?<=,) (?=.{30,})
|
|
```
|