Inject_embed: run-dartpad
info string breaks syntax highlighting
#1380
Labels
Milestone
run-dartpad
info string breaks syntax highlighting
#1380
From the Embedding Guide, Converting code blocks to DartPad section:
Using an info string of
run-dartpad
rather thandart
breaks syntax highlighting, both in the IDE and the generated site (users will get to see the original code block in cases where DartPad hasn't been injected yet, or hasn't been successfully injected). Users see this:Instead of this:
Probably shouldn't happen that often, but still. /cc @kwalrath @legalcodes
It would be great if we could:
dart
, andFor example:
Or using a Jekyll-specific syntax:
Jekyll renders this as:
The text was updated successfully, but these errors were encountered: