mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-12-22 17:35:30 +00:00
new table shortcode
This commit is contained in:
parent
a1691442d2
commit
5f0a06b1a2
6
layouts/shortcodes/table.html
Normal file
6
layouts/shortcodes/table.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{{ $htmlTable := .Inner | markdownify }}
|
||||
{{ $class := .Get 0 }}
|
||||
{{ $old := "<table>" }}
|
||||
{{ $new := printf "<table class=\"%s\">" $class }}
|
||||
{{ $htmlTable := replace $htmlTable $old $new }}
|
||||
{{ $htmlTable | safeHTML }}
|
Loading…
Reference in a new issue