fix: table bypass refactoring when it contains IAL (#519)

Fix #519
This commit is contained in:
Cotes Chung 2022-03-03 18:05:48 +08:00
parent 7fef3fafec
commit 5d85ccb994
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -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 %}