Skip to content

fix: Thematic breaks should respect wrap length #504

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sjoblomj
Copy link

@sjoblomj sjoblomj commented Dec 27, 2024

Currently, a thematic break (hr) will always be 70 characters. This PR makes the thematic break respect the given wrap length.

  • If the user gives no wrap length, 70 characters will be used as per today.
  • If the user gives a very small wrap length, 3 characters will be used, as per the spec.

@hukkin
Copy link
Owner

hukkin commented Feb 6, 2025

Hey, thanks for the PR!

The --wrap feature is really only intended and documented to wrap paragraph text. This would be a new feature that can be considered in a separate issue or together with larger changes here #331.

@KyleKing
Copy link
Contributor

KyleKing commented Feb 6, 2025

One other option to consider is contributing to this existing plugin: csala/mdformat-simple-breaks#1

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

Successfully merging this pull request may close these issues.

3 participants