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

Add support for closed ATX headers in Markdown output #745

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mcdonnnj
Copy link

@mcdonnnj mcdonnnj commented Jan 2, 2024

Description of your changes

This adds a new atx-closed option to support Markdown output with closed ATX headers. The default value is false to be consistent with the current output of open ATX headers.

Fixes #744

I have:

How has this code been tested

I added tests that are identical to the Markdown Base and Empty Markdown tests but changed the new option to true. Appropriate golden outputs were added to ensure correct output.

Add a new `atx-closed` option to support outputting Markdown documents
with closed ATX headers.

Signed-off-by: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com>
Update all of the templates for Markdown document output to use the new
`atx-closed` option to control whether ATX headers should be open or
closed.

Signed-off-by: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com>
Update all of the templates for Markdown table output to use the new
`atx-closed` option to control whether ATX headers should be open or
closed.

Signed-off-by: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com>
This adds testing to verify the functionality of the new `atx-closed`
option.

Signed-off-by: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com>
Ensure the command documentation includes the newly added flag.

Signed-off-by: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com>
@mcdonnnj mcdonnnj force-pushed the improvement/support_atx_closed_markdown_headers branch from 1bc5d6b to d6d4d0b Compare May 21, 2024 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support outputting closed ATX headers in Markdown output
1 participant