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 authored and shihtiy-tw committed Nov 26, 2022
1 parent 1968fb1 commit c736a3a
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 c736a3a

Please sign in to comment.