11# hast-util-to-jsx-runtime
22
3- [ ![ Build] [ build-badge ]] [ build ]
4- [ ![ Coverage] [ coverage-badge ]] [ coverage ]
5- [ ![ Downloads] [ downloads-badge ]] [ downloads ]
6- [ ![ Size] [ size-badge ]] [ size ]
7- [ ![ Sponsors] [ sponsors-badge ]] [ collective ]
8- [ ![ Backers] [ backers-badge ]] [ collective ]
9- [ ![ Chat] [ chat-badge ]] [ chat ]
3+ [ ![ Build] [ badge-build-image ]] [ badge-build-url ]
4+ [ ![ Coverage] [ badge-coverage-image ]] [ badge-coverage-url ]
5+ [ ![ Downloads] [ badge-downloads-image ]] [ badge-downloads-url ]
6+ [ ![ Size] [ badge-size-image ]] [ badge-size-url ]
107
118hast utility to transform a tree to preact, react, solid, svelte, vue, etc.,
129with an automatic JSX runtime.
@@ -49,9 +46,9 @@ with an automatic JSX runtime.
4946
5047## What is this?
5148
52- This package is a utility that takes a [ hast] [ ] tree and an
53- [ automatic JSX runtime] [ jsx-runtime ] and turns the tree into anything you
54- wish.
49+ This package is a utility that takes a [ hast] [ github-hast ] tree and an
50+ [ automatic JSX runtime] [ reactjs- jsx-runtime] and turns the tree into anything
51+ you wish.
5552
5653## When should I use this?
5754
@@ -66,8 +63,8 @@ development, and have guaranteed support for fragments.
6663
6764## Install
6865
69- This package is [ ESM only] [ esm ] .
70- In Node.js (version 16+), install with [ npm] [ ] :
66+ This package is [ ESM only] [ github-gist- esm] .
67+ In Node.js (version 16+), install with [ npm] [ npmjs-install ] :
7168
7269``` sh
7370npm install hast-util-to-jsx-runtime
@@ -152,7 +149,7 @@ automatic JSX runtime.
152149
153150##### Parameters
154151
155- * ` tree ` ([ ` Node ` ][node ])
152+ * ` tree ` ([ ` Node ` ][github-hast-nodes ])
156153 — tree to transform
157154* ` options ` ([ ` Options ` ][api-options], required)
158155 — configuration
@@ -722,115 +719,108 @@ This means we try to keep the current release line,
722719## Security
723720
724721Be careful with user input in your hast tree.
725- Use [ ` hast-util-santize ` ] [ hast-util-sanitize ] to make hast trees safe.
722+ Use [ ` hast-util-santize ` ] [ github- hast-util-sanitize] to make hast trees safe.
726723
727724## Related
728725
729726* [ ` hastscript ` ] ( https://github.com/syntax-tree/hastscript )
730727 — build hast trees
731728* [ ` hast-util-to-html ` ] ( https://github.com/syntax-tree/hast-util-to-html )
732729 — serialize hast as HTML
733- * [ ` hast-util-sanitize ` ] ( https:// github.com/syntax-tree/ hast-util-sanitize)
730+ * [ ` hast-util-sanitize ` ] [ github- hast-util-sanitize ]
734731 — sanitize hast
735732
736733## Contribute
737734
738- See [ ` contributing.md ` ] [ contributing ] in [ ` syntax-tree/.github ` ] [ health ] for
739- ways to get started.
740- See [ ` support.md ` ] [ support ] for ways to get help.
735+ See [ ` contributing.md ` ] [ health-contributing ]
736+ in
737+ [ ` syntax-tree/.github ` ] [ health ]
738+ for ways to get started.
739+ See [ ` support.md ` ] [ health-support ] for ways to get help.
741740
742- This project has a [ code of conduct] [ coc ] .
743- By interacting with this repository, organization, or community you agree to
744- abide by its terms.
741+ This project has a [ code of conduct] [ health-coc ] .
742+ By interacting with this repository,
743+ organization,
744+ or community you agree to abide by its terms.
745745
746746## License
747747
748- [ MIT] [ license ] © [ Titus Wormer] [ author ]
748+ [ MIT] [ file- license] © [ Titus Wormer] [ wooorm ]
749749
750750<!-- Definitions -->
751751
752- [ build-badge ] : https://github.com/syntax-tree/hast-util-to-jsx-runtime/workflows/main/badge.svg
753-
754- [ build ] : https://github.com/syntax-tree/hast-util-to-jsx-runtime/actions
755-
756- [ coverage-badge ] : https://img.shields.io/codecov/c/github/syntax-tree/hast-util-to-jsx-runtime.svg
757-
758- [ coverage ] : https://codecov.io/github/syntax-tree/hast-util-to-jsx-runtime
759-
760- [ downloads-badge ] : https://img.shields.io/npm/dm/hast-util-to-jsx-runtime.svg
761-
762- [ downloads ] : https://www.npmjs.com/package/hast-util-to-jsx-runtime
752+ [ api-components ] : #components
763753
764- [ size-badge ] : https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=hast-util-to-jsx-runtime
754+ [ api-create-evaluater ] : #createevaluater
765755
766- [ size ] : https://bundlejs.com/?q=hast-util-to-jsx-runtime
756+ [ api-element-attribute-name-case ] : #elementattributenamecase
767757
768- [ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
758+ [ api-evaluate-expression ] : #evaluateexpression
769759
770- [ backers-badge ] : https://opencollective.com/unified/backers/badge.svg
760+ [ api-evaluate-program ] : #evaluateprogram
771761
772- [ collective ] : https://opencollective.com/unified
762+ [ api-evaluater ] : #evaluater
773763
774- [ chat-badge ] : https://img.shields.io/badge/chat-discussions-success.svg
764+ [ api-extra-props ] : #extraprops
775765
776- [ chat ] : https://github.com/syntax-tree/unist/discussions
766+ [ api-fragment ] : #fragment
777767
778- [ npm ] : https://docs.npmjs.com/cli/install
768+ [ api-jsx ] : #jsx
779769
780- [ esm ] : https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
770+ [ api-jsx-dev ] : #jsxdev
781771
782- [ esmsh ] : https://esm.sh
772+ [ api-options ] : #options
783773
784- [ typescript ] : https://www.typescriptlang.org
774+ [ api-props ] : #props
785775
786- [ license ] : license
776+ [ api-source ] : #source
787777
788- [ author ] : https://wooorm.com
778+ [ api-space ] : #space
789779
790- [ health ] : https://github.com/syntax-tree/.github
780+ [ api-style-property-name-case ] : #stylepropertynamecase
791781
792- [ contributing ] : https://github.com/syntax-tree/.github/blob/main/contributing.md
782+ [ api-to-jsx-runtime ] : #tojsxruntimetree-options
793783
794- [ support ] : https://github.com/syntax-tree/.github/blob /main/support.md
784+ [ badge-build-image ] : https://github.com/syntax-tree/hast-util-to-jsx-runtime/workflows /main/badge.svg
795785
796- [ coc ] : https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
786+ [ badge-build-url ] : https://github.com/syntax-tree/hast-util-to-jsx-runtime/actions
797787
798- [ hast ] : https://github.com/ syntax-tree/hast
788+ [ badge-coverage-image ] : https://img.shields.io/codecov/c/github/ syntax-tree/hast-util-to-jsx-runtime.svg
799789
800- [ node ] : https://github.com/ syntax-tree/hast#nodes
790+ [ badge-coverage-url ] : https://codecov.io/github/ syntax-tree/hast-util-to-jsx-runtime
801791
802- [ hast-util-sanitize ] : https://github.com/syntax-tree/ hast-util-sanitize
792+ [ badge-downloads-image ] : https://img.shields.io/npm/dm/ hast-util-to-jsx-runtime.svg
803793
804- [ jsx-runtime ] : https://reactjs.org/blog/2020/09/22/introducing-the-new -jsx-transform.html
794+ [ badge-downloads-url ] : https://www.npmjs.com/package/hast-util-to -jsx-runtime
805795
806- [ api-to-jsx-runtime ] : #tojsxruntimetree-options
796+ [ badge-size-image ] : https://img.shields.io/bundlejs/size/hast-util-to-jsx-runtime
807797
808- [ api-components ] : #components
798+ [ badge-size-url ] : https://bundlejs.com/?q=hast-util-to-jsx-runtime
809799
810- [ api-create-evaluater ] : #createevaluater
800+ [ esmsh ] : https://esm.sh
811801
812- [ api-element-attribute-name-case ] : #elementattributenamecase
802+ [ file-license ] : license
813803
814- [ api-evaluate-expression ] : #evaluateexpression
804+ [ github-gist-esm ] : https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
815805
816- [ api-evaluate-program ] : #evaluateprogram
806+ [ github-hast ] : https://github.com/syntax-tree/hast
817807
818- [ api-evaluater ] : #evaluater
808+ [ github-hast-nodes ] : https://github.com/syntax-tree/hast#nodes
819809
820- [ api-extra-props ] : #extraprops
810+ [ github-hast-util-sanitize ] : https://github.com/syntax-tree/hast-util-sanitize
821811
822- [ api-fragment ] : #fragment
812+ [ health ] : https://github.com/syntax-tree/.github
823813
824- [ api-jsx ] : #jsx
814+ [ health-coc ] : https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md
825815
826- [ api-jsx-dev ] : #jsxdev
816+ [ health-contributing ] : https://github.com/syntax-tree/.github/blob/main/contributing.md
827817
828- [ api-options ] : #options
818+ [ health-support ] : https://github.com/syntax-tree/.github/blob/main/support.md
829819
830- [ api-props ] : #props
820+ [ npmjs-install ] : https://docs.npmjs.com/cli/install
831821
832- [ api-source ] : #source
822+ [ reactjs-jsx-runtime ] : https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
833823
834- [ api-space ] : #space
824+ [ typescript ] : https://www.typescriptlang.org
835825
836- [ api-style-property-name-case ] : #stylepropertynamecase
826+ [ wooorm ] : https://wooorm.com
0 commit comments