MeanderingProgrammer / render-markdown.nvim

Plugin to improve viewing Markdown files in Neovim
MIT License
1.37k stars 32 forks source link

feature: Heading styling enhancement #121

Closed Krystian-KF closed 1 month ago

Krystian-KF commented 1 month ago

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:

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

MeanderingProgrammer commented 1 month ago

Feature added here: https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/6392a5dfa10f367e10fe58ea9c2faf3179b145d5

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

Krystian-KF commented 1 month ago

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 commented 1 month ago

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