mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-06 11:09:21 +00:00
Merge pull request #2656 from ZhenShuo2021/feat/codeblock-title
✨ Feat: support title in code block
This commit is contained in:
9 files changed
+91
-110
No files matched your search
@@ -0,0 +1,10 @@
|
||||
{{- $title := or .Attributes.title "" -}}
|
||||
{{- $lang := or .Type "text" -}}
|
||||
<div class="highlight-wrapper">
|
||||
{{- with $title -}}
|
||||
<div class="codeblock-title">
|
||||
{{- $title -}}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- transform.Highlight .Inner $lang .Options -}}
|
||||
</div>
|
||||
Reference in new issue
Block a user