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
Fix cotes2020#519

(cherry picked from commit 5d85ccb)
  • Loading branch information
cotes2020 authored and linkliu committed Apr 10, 2022
1 parent d9a5128 commit 7f6948b
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 7f6948b

Please sign in to comment.