mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update lib/md033.mjs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d1dd6b33ad
commit
cf807dfb86
1 changed files with 2 additions and 3 deletions
|
|
@ -14,9 +14,8 @@ export default {
|
|||
let allowedElements = params.config.allowed_elements;
|
||||
allowedElements = Array.isArray(allowedElements) ? allowedElements : [];
|
||||
allowedElements = allowedElements.map((element) => element.toLowerCase());
|
||||
let tableAllowedElements = params.config.table_allowed_elements;
|
||||
// if not defined, use allowedElements for backward compatibility
|
||||
tableAllowedElements = Array.isArray(tableAllowedElements) ? tableAllowedElements : allowedElements;
|
||||
let tableAllowedElements = params.config.table_allowed_elements ?? allowedElements;
|
||||
tableAllowedElements = Array.isArray(tableAllowedElements) ? tableAllowedElements : [];
|
||||
tableAllowedElements = tableAllowedElements.map((element) => element.toLowerCase());
|
||||
for (const token of filterByTypesCached([ "htmlText" ], true)) {
|
||||
const htmlTagInfo = getHtmlTagInfo(token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue