This feature request is intended as a recap of what currently exists and what is missing with regards to formatting text in Viktor.
Description of the limitation and why it is relevant to address
As a developer, I want to freely format text in most Viktor objects (titles and fields).
From what I’ve seen and tested, there are 5 options to format text and write maths:
Formatting methods
1. Inline simple Maths
"**Length** → $a^2$"
outputs :
Length → a^2
2. Block simple maths
"""
**Length** → $a^2$
"""
3. Inline complex maths
r"**Angle** $\theta_{sup}$")
outputs :
Angle: \theta_{sup}
4. Block complex maths
r"""
**Angle** $\theta_{sup}$
"""
5. Nested block
Markdown style
"""
**Angle**
```math
\\theta_{sup}
```
"""
Formatting fields, texts, etc
However they only seem to work for certain types of viktor fields/outputs:
Text
TextField,TextAreaField
OutputField
→ OutputField that renders like normal text (Markdown)BooleanField,NumberField,IntegerField
OptionField,AutocompleteField: title
, options: 
Step,Tab,Section
Table,DynamicArray: title
, column names 
→ Style / format text using Markdown in TableInputUserError
→ Text formatting in UserError
I think it would be great to be able to write formatted text in all these Viktor objects for increased readability for the end users. For developers, it can also be confusing which types of field/outputs are formattable and which aren’t.
Current workarounds
- Use special symbols (eg. “α”) directly from the internet, instead of using the Markdown method (eg. \alpha)
- Instead of using an
OutputField, create multipleTextand use thevisibleargument to only make one appear.