Note: This macro works only standalone (and not inline) voluntarily. This is to allow displaying the versions in the gutter for example, which wouldn't be possible if used inline.

Example 1: Inline with "since"

{{version since='11.10.5, 12.5, 12.7RC1'}}
New feature...
{{/version}}

Results in:

11.10.5+, 12.5+, 12.7+ New feature...

Example 2: Standalone with "before"

{{version before='11.10.5, 12.5'}}
Paragraph1

Paragraph2

{{/version}}

Results in:

<11.10.5, <12.5

Paragraph1

Paragraph2

Example 3: Inline in list items

* {{version since='11.10.5'}}List item1{{/version}}
* {{version since='12.5'}}List item2{{/version}}
* {{version since='12.7RC1'}}List item3{{/version}}

Results in:

  • 11.10.5+ List item1
  • 12.5+ List item2
  • 12.7+ List item3
Tags:
Created by Vincent Massol on 2020/06/30
   

Get Connected