Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document a new plugin for shorter thematic breaks #376

Open
2 tasks
csala opened this issue Dec 29, 2022 · 2 comments
Open
2 tasks

Document a new plugin for shorter thematic breaks #376

csala opened this issue Dec 29, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@csala
Copy link

csala commented Dec 29, 2022

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 csala added the enhancement New feature or request label Dec 29, 2022
@welcome
Copy link

welcome bot commented Dec 29, 2022

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

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! 🎉

@hukkin
Copy link
Member

hukkin commented Jan 24, 2023

A PR is very welcome! 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants