Gets a regex pattern for front matter using the specified delimiters.
Syntax
public static string GetDelimiterRegex(string endDelimiter, bool endRepeated, bool ignoreEndDelimiterOnFirstLine = true)
Parameters
Name |
Type |
Description |
endDelimiter |
string |
The front matter end delimiter. If this is null then a null value is returned.
|
endRepeated |
bool |
true to allow the end delimiter to repeat, false to require it verbatim.
|
ignoreEndDelimiterOnFirstLine |
bool |
Ignores the delimiter if it appears on the first line. This is useful when processing
Jekyll style front matter that has the delimiter both above and below the front matter
content. This has no effect if a start delimiter is specified.
|
Return Value
Type |
Description |
string |
A regular expression that finds front matter using the specified delimiters. |