Skip to content

Commit

Permalink
fix: treat html_block as code.
Browse files Browse the repository at this point in the history
  • Loading branch information
fyc09 authored Jul 17, 2024
1 parent b2305ef commit def6225
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helpers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ function getLineMetadata(params) {
lineMetadata[i][2] = true;
}
});
filterTokens(params, "html_block", (token) => {
for (let i = token.map[0]; i < token.map[1]; i++) {
lineMetadata[i][2] = true;
}
});
filterTokens(params, "table_open", (token) => {
for (let i = token.map[0]; i < token.map[1]; i++) {
lineMetadata[i][4] = true;
Expand Down

0 comments on commit def6225

Please sign in to comment.