mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-21 21:15:40 +01: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 New Issue
Block a user