fix csv table shortcode

pull/218/head
Septs 2021-12-13 04:46:41 +08:00
parent 937449e1cc
commit c3cc0d5e7b
No known key found for this signature in database
GPG Key ID: 6EC3B9D7E6EE828F
1 changed files with 1 additions and 1 deletions

View File

@ -4,8 +4,8 @@
<table style="margin:0;white-space:nowrap"> <table style="margin:0;white-space:nowrap">
{{ with $caption }}<caption>{{- . -}}</caption>{{ end }} {{ with $caption }}<caption>{{- . -}}</caption>{{ end }}
{{ if $useHeaderRow -}} {{ if $useHeaderRow -}}
{{- $rows = after 1 $rows -}}
<thead><tr>{{ range (index $rows 0) }}<th>{{- . -}}</th>{{ end }}</tr></thead> <thead><tr>{{ range (index $rows 0) }}<th>{{- . -}}</th>{{ end }}</tr></thead>
{{- $rows = after 1 $rows -}}
{{ end -}} {{ end -}}
<tbody> <tbody>
{{ range $rows -}} {{ range $rows -}}