forked from MeanderingProgrammer/render-markdown.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Allow each individual component to be disabled
## Details Now that each component is defined in its own configuration we can add an `enabled` flag to each to allow them to be enabled / disabled. This has been added to: - heading - code - dash - bullet - checkbox - quote - pipe_table There are a couple of slightly unintuitive behaviors that I'll note down here. - Disabling quote also disables callouts. This is because callouts are essentially a special block quote. So if block quote rendering is disabled it makes no sense to render callouts. This does mean you can't have quote rendering without callouts, though this seems like an unlikely feature request. - Disabling checkboxes re-enables their list like behavior. Meaning bullet points will now be rendered at the start of checkboxes like normal list items rather than being concealed. - Disabling both checkboxes and bullets will then disable any rendering on checkbox elements. This is the only feature that requires disabling two things to get a `raw` view.
- Loading branch information
1 parent
501e5e0
commit b84a788
Showing
8 changed files
with
150 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.