There are two types of code markdown one is inline code(1 backticks) and another is codeblock (3 backticks)
Markdown(
controller: scrollController,
selectable: true,
builders: {
'code': CodeElementBuilder()
},
styleSheet: MarkdownStyleSheet(
textScaleFactor: 1.0,
codeblockPadding: EdgeInsets.all(10),
),
data: data,
styleSheetTheme: MarkdownStyleSheetBaseTheme.material,
);
I create a custom codeElementBuilder by using this example Codeblock Syntax Builder
but it also apply to inline code how can I separate both style inlineCode and codeblock.
I am using flutter_markdown package to add markdown