mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
11 lines
396 B
HTML
11 lines
396 B
HTML
{{- /*
|
|
Marked texts rendering
|
|
This is an experimental syntax highlighting for the marked texts.
|
|
Embed types: default, primary, secondary, success, warning, danger
|
|
*/ -}}
|
|
|
|
{{- $content := replaceRE `<mark>(.+?)</mark>\[(.+?)\]` `<mark class="mark-$2">$1</mark>` . -}}
|
|
{{- $content = replaceRE `<mark>(.+?)</mark>` `<mark class="mark-default">$1</mark>` $content -}}
|
|
|
|
{{- return $content -}}
|