{"library":"micromark-util-html-tag-name","title":"micromark HTML Tag Names Utility","description":"micromark-util-html-tag-name is a low-level utility package within the `micromark` ecosystem, providing curated lists of HTML tag names relevant for CommonMark-compliant Markdown parsing. Specifically, it exports `htmlBlockNames` and `htmlRawNames`, which are used by `micromark` to apply specific parsing rules for HTML (flow) constructs. The `htmlBlockNames` array aids in determining when more relaxed parsing rules apply, based on CommonMark's condition 6, while `htmlRawNames` guides the parser on when HTML content can include lines without exiting until a matching closing tag is found (CommonMark's condition 1). This package is currently in its stable version 2.0.1 and is actively maintained as part of the `micromark` monorepo, which generally sees frequent updates, often with performance enhancements, and drops support for unmaintained Node.js versions with new major releases. It's designed for developers building or extending `micromark` itself, rather than for general HTML tag lookup.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install micromark-util-html-tag-name"],"cli":null},"imports":["import { htmlBlockNames } from 'micromark-util-html-tag-name'","import { htmlRawNames } from 'micromark-util-html-tag-name'","import { htmlBlockNames, htmlRawNames } from 'micromark-util-html-tag-name'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { htmlBlockNames, htmlRawNames } from 'micromark-util-html-tag-name';\n\nconsole.log('--- HTML Block Names (CommonMark Condition 6) ---');\nconsole.log('These tags allow more relaxed parsing rules within micromark.');\nconsole.log('Examples:', htmlBlockNames.slice(0, 5).join(', ') + '...');\nconsole.log(`Total block tags: ${htmlBlockNames.length}`);\n\nconsole.log('\\n--- HTML Raw Names (CommonMark Condition 1) ---');\nconsole.log('Content within these tags is treated as raw HTML, without further Markdown parsing, until a closing tag is found.');\nconsole.log('Examples:', htmlRawNames.slice(0, 3).join(', ') + '...');\nconsole.log(`Total raw tags: ${htmlRawNames.length}`);\n\n// This utility package primarily provides these lists for use within the micromark parser.\n// It is not intended for general-purpose HTML tag validation or manipulation outside of micromark's context.\n// Developers building custom micromark extensions or alternatives might directly consume these lists.\n","lang":"javascript","description":"This quickstart demonstrates how to import and access the `htmlBlockNames` and `htmlRawNames` arrays, detailing their purpose within the micromark parser's logic for handling HTML tags based on CommonMark specifications.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}