1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-08 00:27:58 +00:00

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