mdformat icon indicating copy to clipboard operation
mdformat copied to clipboard

Document a new plugin for shorter thematic breaks

Open csala opened this issue 3 years ago • 2 comments

Context

I am using mdformat but having troubles with the current thematic break rendering composed of 70 underscore characters, which I am rather used to typing as three dashes ---.

My (very personal and opinionated) reasons being:

  1. The default vim highlighting for Markdown syntax breaks when multiple underscores are put together, because it conflicts with the italics format. Notice that this can probably be solved with Vim plugins or configuration tweaks, but the origin of the problem is about raw vim with no plugins.
  2. Typing --- while writing a document is quick and easy, while typing a line of exactly 70 underscores is comparatively much harder and needs some sort of copy/paste action. My usual coding workflow involves code style checkers like mdformat and black as pre-commit hooks, but in general I try to type in code and documentation that is already valid to minimize the number of times that these tools have to modify what I have typed, which forces me to redo the review, git add and pre-commit loop.

I admit that these are very personal reasons, so I do not wish to engange in any discussions about the current rendering style and the rationale behind it.

Instead, I thought best to take the route of coding a new plugin which overrides the rendering style for thematic breaks with three dashes, so anyone who wants can take advantage of it without having to do any change in the main mdformat project: https://github.com/csala/mdformat-simple-breaks

Proposal

The proposal is just to add the plugin to the corresponding list in the documentation I'm happy to make a PR for it.

Tasks and updates

  • [ ] Discuss and decide if a PR is wanted
  • [ ] Do the corresponding PR

csala avatar Dec 29 '22 17:12 csala

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Dec 29 '22 17:12 welcome[bot]

A PR is very welcome! :smile_cat:

hukkin avatar Jan 24 '23 16:01 hukkin