rustypipe/testfiles/text/styled_comment.json
ThetaDev b8825f9199
All checks were successful
CI / Test (push) Successful in 2m29s
feat: add text formatting (bold/italic/strikethrough)
2024-04-03 03:28:13 +02:00

31 lines
687 B
JSON

{
"ln": {
"content": "Bold: Awesome\nItalic: Great\nCut: Dumb\n\nMixed: Mixer",
"styleRuns": [
{
"startIndex": 6,
"length": 7,
"weightLabel": "FONT_WEIGHT_MEDIUM"
},
{
"startIndex": 22,
"length": 5,
"weightLabel": "FONT_WEIGHT_NORMAL",
"italic": true
},
{
"startIndex": 33,
"length": 4,
"weightLabel": "FONT_WEIGHT_NORMAL",
"strikethrough": "LINE_STYLE_SINGLE"
},
{
"startIndex": 46,
"length": 5,
"weightLabel": "FONT_WEIGHT_MEDIUM",
"italic": true,
"strikethrough": "LINE_STYLE_SINGLE"
}
]
}
}