Add support for sidebar, example and openblock in AsciiDoc
What does this MR do and why?
Contrbutes to #362325 (closed)
Problem
- CSS classes for special AsciiDoc blocks are sanitized from the output
- CSS classes are missing definitions
Solution
- Add
sidebarblock
,openblock
andexampleblock
to the allowlist. - Add CSS styles for new blocks.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How it looks on https://asciidoc.org/ (scroll down to the online editor)
How to set up and validate locally
- Create a snippet with the content from $3679077
- You should see that blocks
sidebar
andexample
have CSS styles
Edited by Vasilii Iakliushin