Skip to content

Commit e790d80

Browse files
committed
fix: exclude table
1 parent 73af914 commit e790d80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/mathjax-md-preview/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h1>Markdown Preview <small>with MathJax</small></h1>
471471
*/
472472
function convert_monologue_to_details(container) {
473473
// 将所有第一层里面除了文本标准tag都转为 details
474-
const text_tags = "p, h1, h2, h3, h4, h5, h6, pre, ul, ol, details, blockquote, code, img, hr, a".split(", ");
474+
const text_tags = "p, h1, h2, h3, h4, h5, h6, pre, ul, ol, details, blockquote, code, img, hr, a, table".split(", ");
475475
const monologue_elems = [...container.children].filter(elem => !text_tags.includes(elem.localName));
476476
monologue_elems.forEach(elem => {
477477
const details = document.createElement('details');

0 commit comments

Comments
 (0)