{"library":"h2x-core","type":"library","category":null,"description":"h2x-core is the core compiler for h2x, an HTML-to-JSX transformer. It converts HTML strings into a JavaScript AST (JSX) via JSDOM, using a plugin system for extensibility. Version 1.1.1 is current, with releases every few months. Key differentiators: leverages JSDOM for robust parsing, supports state, and has a plugin architecture. It handles special SVG attributes and style attributes. Alternatives are typically SVGR or manual transformation.","language":"javascript","status":"active","version":"1.1.1","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install h2x-core","imports":["import { compile } from 'h2x-core'","import { transform } from 'h2x-core'","import { parse } from 'h2x-core'"]},{"cmd":"yarn add h2x-core","imports":[]},{"cmd":"pnpm add h2x-core","imports":[]}],"homepage":null,"github":"https://github.com/smooth-code/h2x","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/h2x-core","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}