Skip to content

@kekkai/blueprint / injectBetweenMarkers

Function: injectBetweenMarkers()

injectBetweenMarkers(source, tag, content): string

Defined in: markdown/markdown.ts:45

Replace the content between <!-- TAG:START --> and <!-- TAG:END --> in source. Pure string transform; throws if the markers are missing or out of order. The file I/O, hashing, and formatting around it live in Bootstrap.

Parameters

source

string

tag

string

content

string

Returns

string