Skip to content

feature: Heading styling enhancement #121

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

Closed
Krystian-KF opened this issue Aug 6, 2024 · 3 comments
Closed

feature: Heading styling enhancement #121

Krystian-KF opened this issue Aug 6, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Krystian-KF
Copy link

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

It would be amazing to have the same stylings for headings as for a code block. The ones missing are:

  • left pad
  • right pad
  • min_width

image

That would give ultimate flexibility how to style our headings, making it possible to line them up with code blocks and dash lines for visual consistency. I believe that it would even enable us to centred the heading as well.

image

Describe alternatives you've considered

Just having min_width would go a long way. As an alternative I am using a blank character (Braille Pattern Blank: U+2800) to exdend the heading.ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

Additional information

No response

@Krystian-KF Krystian-KF added the enhancement New feature or request label Aug 6, 2024
@Krystian-KF Krystian-KF changed the title feature: feature: Heading styling enhancement Aug 6, 2024
MeanderingProgrammer added a commit that referenced this issue Aug 6, 2024
# Details

Request: #121

This adds 3 additional heading parameters, left_pad, right_pad, and
min_width.

This works in an identical way to the same parameters in code blocks.

left_pad can be used with any width attribute, whereas right_pad and
min_width are only used for 'block' width.

We do need to take additional care of various concealing behaviors
which adds a bit of complexity.

left_pad: moves the heading line to the left
right_pad: adds a margin of background to the end of block width headings
min_width: ensures that the same padding extends at least to the
specified value making a uniform look easier
@MeanderingProgrammer
Copy link
Owner

Feature added here: 6392a5d

Works in the same way as code blocks, give it a shot!

@Krystian-KF
Copy link
Author

Amazing, works as a charm!

Thank you very much for quick response and implementation.

I cannot say enough how thankful I am to you for this plugin! I have tried some few other options before but this is the only one that gives me almost limitless level of customization and enables me to have my notes look as close as possible (being in a Terminal) to how I configured and display them in Obsidian.

Thank You.

@MeanderingProgrammer
Copy link
Owner

Thank you for the kind words. Am glad you're enjoying the plugin :)

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