Configure vue-markdown to avoid adding html line breaks
- Backport to target_version0.9.6 -> #1121
Summary
When loading CRD descriptions to power help tooltips on the web console, some of them may contain line breaks that will get converted in the UI to <br>
tags.
Here's an example on the Node Tolerations operator
property:
"Operator represents a key's relationship to the value. Valid operators are Exists\n and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that\n a pod can tolerate all taints of a particular category.\n"
Which then renders to:
Possible Solution
There's a prop we can set for vue-markdown
to avoid adding line breaks whenever a single \n
is found on the markdown content. It is set true
by default but when set to false
, line breaks on the tooltips descriptions are omitted.
Environment
- StackGres version:
1.0.0-alpha2
/0.9.5
Edited by Luis Garcia