feat: Support inline code blocks on markdown rich text (#3186)

Support inline code blocks on markdown rich text.
This commit is contained in:
Luan Nico
2024-06-06 05:57:55 -07:00
committed by GitHub
parent 7c40034d20
commit 67e069c00d
6 changed files with 69 additions and 8 deletions

View File

@ -58,14 +58,24 @@ class RichTextExample extends FlameGame {
PlainTextNode('."'),
]),
]),
ParagraphNode.simple(
'He pushed the thought under instantly. The fallacy was obvious. It '
'presupposed that somewhere or other, outside oneself, there was a '
'"real" world where "real" things happened. But how could there be '
'such a world? What knowledge have we of anything, save through our '
'own minds? All happenings are in the mind. Whatever happens in all '
'minds, truly happens.',
),
ParagraphNode.group([
PlainTextNode(
'He pushed the thought under instantly. The fallacy was obvious. It '
'presupposed that somewhere or other, outside oneself, there was a '
'"',
),
CodeTextNode.simple('real'),
PlainTextNode(
'" world where "',
),
CodeTextNode.simple('real'),
PlainTextNode(
'" things happened. But how could there be '
'such a world? What knowledge have we of anything, save through our '
'own minds? All happenings are in the mind. Whatever happens in all '
'minds, truly happens.',
),
]),
]);
add(