Skip to content

Commit

Permalink
Html tables (#51)
Browse files Browse the repository at this point in the history
* update action to match latest pandoc build script

* remove tabs

* re-enable markdown in html blocks

* re-disable markdown-in-html, escape backslash

* just don't try to put latex markup inside html
  • Loading branch information
chrisfenner authored Dec 3, 2023
1 parent 563b77f commit fa73de5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ runs:
--template=eisvogel.latex
--filter=mermaid-filter
--filter=pandoc-crossref
--lua-filter=parse-html.lua
--resource-path=.:/resources
--data-dir=/resources
--top-level-division=section
Expand All @@ -84,7 +85,7 @@ runs:
--metadata=titlepage-rule-height:0
--metadata=colorlinks:true
--metadata=contact:[email protected]
--from=markdown+implicit_figures+table_captions
--from=markdown+implicit_figures+grid_tables+table_captions-citations-markdown_in_html_blocks
--to=pdf
${{ inputs.input-md }}
--output=${{ inputs.output-pdf }}
Expand All @@ -99,6 +100,7 @@ runs:
--template=eisvogel.latex
--filter=mermaid-filter
--filter=pandoc-crossref
--lua-filter=parse-html.lua
--resource-path=.:/resources
--data-dir=/resources
--top-level-division=section
Expand All @@ -113,7 +115,7 @@ runs:
--metadata=titlepage-rule-height:0
--metadata=colorlinks:true
--metadata=contact:[email protected]
--from=markdown+implicit_figures+table_captions
--from=markdown+implicit_figures+grid_tables+table_captions-citations-markdown_in_html_blocks
--to=latex
${{ inputs.input-md }}
--output=${{ inputs.output-tex }}
Expand All @@ -129,9 +131,10 @@ runs:
--filter=/resources/filters/info.py
--filter=mermaid-filter
--filter=pandoc-crossref
--lua-filter=parse-html.lua
--resource-path=.:/resources
--data-dir=/resources
--from=markdown+implicit_figures+table_captions
--from=markdown+implicit_figures+grid_tables+table_captions-citations-markdown_in_html_blocks
--reference-doc=/resources/templates/tcg_template.docx
--to=docx
${{ inputs.input-md }}
Expand Down
35 changes: 35 additions & 0 deletions sample3.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,39 @@ This section contains a Grid Table.
| Earth | -89.2 | 14 | 56.7 |
+---------------------+-------+-------+-------+

## HTML Table

This section contains an HTML Table.

<table>
<colgroup>
<col style="width: 13%" />
<col style="width: 86%" />
</colgroup>
<thead>
<tr>
<th>A || B</th>
<th>concatenation of B to A</th>
</tr>
</thead>
<tbody>
<tr>
<td>CEIL(x)</td>
<td>the smallest integer not less than x</td>
</tr>
<tr>
<td><strong>FLOOR(</strong>x<strong>)</strong></td>
<td>the largest integer not greater than x</td>
</tr>
<tr>
<td>A = B</td>
<td>equivalence (A is the same as B)</td>
</tr>
<tr>
<td>{ A }</td>
<td>an optional element</td>
</tr>
</tbody>
</table>

# References

0 comments on commit fa73de5

Please sign in to comment.