Skip to content

Commit

Permalink
fix: table bypass refactoring when it contains IAL (cotes2020#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Mar 3, 2022
1 parent 7fef3fa commit 5d85ccb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _includes/refactor-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
we suround the markdown table with `<div class="table-wrapper">` and `</div>`
-->

{% if _content contains '<table>' %}
{% if _content contains '<table' %}
{% assign _content = _content
| replace: '<table>', '<div class="table-wrapper"><table>'
| replace: '<table', '<div class="table-wrapper"><table'
| replace: '</table>', '</table></div>'
| replace: '<code><div class="table-wrapper">', '<code>'
| replace: '</table></div></code>', '</table></code>'
%}
{% endif %}
Expand Down

0 comments on commit 5d85ccb

Please sign in to comment.