The parser currently processes and applies markdown styling (like italics from underscores _) to the content within an inline code block.
Bug Description
Content inside backticks (e.g., ...) should be treated as a literal string and should not be parsed for any further markdown styles. However, the current implementation incorrectly applies styles like italics to parts of the code that contain characters like underscores.
Steps to Reproduce
Use a markdown string with an inline code block that contains underscores, for example:
markdown
This example is using package:flutter_md/flutter_md.dart.
Render this string using the MarkdownWidget.
Expected Behavior
The text package:flutter_md/flutter_md.dart should be rendered entirely in a monospace font, with no parts of it being italicized.
Actual Behavior
The parts of the string surrounded by underscores (e.g., _md/flutter_md) are incorrectly rendered in an italic font.
The parser currently processes and applies markdown styling (like italics from underscores _) to the content within an inline code block.
Bug Description
Content inside backticks (e.g.,
...) should be treated as a literal string and should not be parsed for any further markdown styles. However, the current implementation incorrectly applies styles like italics to parts of the code that contain characters like underscores.Steps to Reproduce
Use a markdown string with an inline code block that contains underscores, for example:
markdown
This example is using
package:flutter_md/flutter_md.dart.Render this string using the MarkdownWidget.
Expected Behavior
The text package:flutter_md/flutter_md.dart should be rendered entirely in a monospace font, with no parts of it being italicized.
Actual Behavior
The parts of the string surrounded by underscores (e.g., _md/flutter_md) are incorrectly rendered in an italic font.