Skip to content

[ISSUE] A way to insert a CodeSnippet inline (not as a code block) would be nice #26

@lestephane

Description

@lestephane

Consider a constant in a shell script:

//Showcase start maxDurationMs
private static final Long MAX_DURATION_MS = 1600;
//Showcase end maxDurationMs

I'd like to be able to do this in a markdown file that needs to insert the constant's value, not the entire line.

- Its first (cold) invocation duration is less than <!---[InlineCodeSnippet](maxDurationMs,regex="=(\d+);$")--> ms

It would result in the following being shown to the user

- Its first (cold) invocation duration is less than 1600 ms

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions