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

Fix RST escaping; add whitespace postprocessing for RST and MD #56

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

felixfontein
Copy link
Collaborator

Follow-up to #54.

This fixes a bug in RST escaping (:literal:` ` with a non-breakable space between the backticks doesn't render correctly and needs \ to be added before and after the non-breakable space).

It also adds a postprocessing phase to MarkDown and RST rendering that eliminates whitespace problems (like double newlines, spaces at the beginning or end of a line). For RST, it also improves the generated markup (by removing some \ that aren't needed).

felixfontein added a commit to felixfontein/antsibull-docs that referenced this pull request Aug 23, 2024
@felixfontein felixfontein merged commit 200b6d5 into ansible-community:main Aug 23, 2024
6 checks passed
@felixfontein felixfontein deleted the rendering branch August 23, 2024 07:30
felixfontein added a commit to ansible-community/antsibull-docs that referenced this pull request Aug 23, 2024
…311)

* Update Ansible docs dump.

* Fix escaping.

* Update baseline and unit tests for ansible-community/antsibull-docs-parser#56.
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.

1 participant