Skip to content

Add support for sidebar, example and openblock in AsciiDoc

What does this MR do and why?

Contrbutes to #362325 (closed)

Problem

  1. CSS classes for special AsciiDoc blocks are sanitized from the output
  2. CSS classes are missing definitions

Solution

  • Add sidebarblock, openblock and exampleblock 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
Screenshot_2024-02-23_at_18.00.15 image__5_

How it looks on https://asciidoc.org/ (scroll down to the online editor)

Screenshot_2024-02-23_at_18.05.25

How to set up and validate locally

  1. Create a snippet with the content from $3679077
  2. You should see that blocks sidebar and example have CSS styles
Edited by Vasilii Iakliushin

Merge request reports