{"_id":"rehype-mdx-title","_rev":"6-6e70429078a63b6ac6c5504724396d31","name":"rehype-mdx-title","dist-tags":{"latest":"3.2.0"},"versions":{"1.0.0":{"name":"rehype-mdx-title","version":"1.0.0","keywords":["html","markdown","hast","mdx","rehype","rehype-plugin","unified","xdm"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"rehype-mdx-title@1.0.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/rehype-mdx-title#readme","bugs":{"url":"https://github.com/remcohaszing/rehype-mdx-title/issues"},"dist":{"shasum":"292598b5ad8af2c2bd01b3674caea1a44bb60f63","tarball":"https://registry.npmjs.org/rehype-mdx-title/-/rehype-mdx-title-1.0.0.tgz","fileCount":5,"integrity":"sha512-5B/53Y+KQHm4/nrE6pIIPc9Ie2fbPMCLs8WwMGYWWHr+5g3TkmEijRkr8TGYHULtc+C7bOoPR8LIF5DpGROIDg==","signatures":[{"sig":"MEQCIHiQOvXxkAV3sqBsmBtCsxGQPHqbuOL7SPTbwq5KE1QOAiAdMeIXuGibfAFvqNbFSeiaqp1GE9BQvs08nmgYeczetg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJglpX2CRA9TVsSAnZWagAAs0EQAJmjvPm6KSxHoz1r0n2Y\n0LmHEp3A7T9VpCv+yg4kaQfxPpaNdf5r3eqaVGtu4Rl5YKPW73XFCYEmDKeo\nwhdB1owj6kldry+ahM/KkFxit9W+57JiRqmB/O6GMCMJUaOxXhFe+PqDJZVG\ni1tyyRrmDoGuOYDJ5imFnBgk4UowkLb5TtgjJzcltyiGqv7DjWTGPM0JAQYu\nGiUelC9bKkSnOK27CmVueRAfiz9D1G94wi8AFUmKm8FFuMPT5vit+v2rNUPW\nk1+sFWOkUAxHOYWbuqpCpoADtMk0MBFajCdqBrFBvmjhzKP3j0xWwFe9UkLG\nRXFLoEZnkx/61MeXElV66V/kNbEJEQCKkeZ4xRvra+dhXlqQrwV19ift8w1s\nrWNocaEC53NHpMZt/HFaIYP1nK+MbHnZLd/68k+Y5CFgUNHzhFu/5ZzNpsOc\n3lLqHMNhp1UDMm+Yd000gAdOrj8IXuMPqbCezrAqTI7rVtJb4Fmb6jLsTK//\n+KG/uxJR6FtNdWkZKW0ZH3L4wD5OaHaMJjYqqoT0pxNQ5vyZ01dA/z/nTpqA\nii2nCxyik2VETad+1Ae1MEgg8L2o0KjAj4aJI32CuTKAr92LDO68h4HiycbS\n9BpsFtjk12HTAbVs54J0yCAAkgkh0WGIBLeCGuZD+nLYTch2M38X8vkqwkcv\nnubu\r\n=F5+B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","engines":{"node":">=12.2.0"},"gitHead":"48522de568e88571b587d328b987bac2042dc914","scripts":{"test":"ts-node index.test.mjs","prepack":"tsc --project tsconfig.build.json"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"repository":{"url":"git+https://github.com/remcohaszing/rehype-mdx-title.git","type":"git"},"_npmVersion":"7.11.2","description":"A rehype MDX plugin for exposing the page title","directories":{},"_nodeVersion":"14.16.1","dependencies":{"unist-util-visit":"^2.0.3","hast-util-to-string":"^1.0.4","estree-util-is-identifier-name":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"xdm":"^1.10.0","tape":"^5.2.2","eslint":"^7.26.0","ts-node":"^9.1.1","unified":"^9.2.1","prettier":"^2.2.1","to-vfile":"^6.1.0","rehype-raw":"^5.1.0","typescript":"^4.2.4","@types/hast":"^2.3.1","@types/estree":"^0.0.47","eslint-plugin-node":"^11.1.0","eslint-plugin-jsdoc":"^32.3.4","eslint-plugin-react":"^7.23.2","eslint-plugin-import":"^2.22.1","eslint-plugin-unicorn":"^31.0.0","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-markdown":"^2.1.0","eslint-plugin-prettier":"^3.4.0","@typescript-eslint/parser":"^4.22.1","eslint-config-remcohaszing":"^3.3.0","eslint-plugin-eslint-comments":"^3.2.0","@typescript-eslint/eslint-plugin":"^4.22.1","eslint-plugin-sort-destructure-keys":"^1.3.5"},"_npmOperationalInternal":{"tmp":"tmp/rehype-mdx-title_1.0.0_1620481526355_0.21852682310365923","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"rehype-mdx-title","version":"2.0.0","keywords":["html","markdown","hast","mdx","rehype","rehype-plugin","unified"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"rehype-mdx-title@2.0.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/rehype-mdx-title#readme","bugs":{"url":"https://github.com/remcohaszing/rehype-mdx-title/issues"},"dist":{"shasum":"f5ab8c273150f5b395f5029c97bf440c8c33376a","tarball":"https://registry.npmjs.org/rehype-mdx-title/-/rehype-mdx-title-2.0.0.tgz","fileCount":5,"integrity":"sha512-IemxnNjM+mrABwH2V0UQjg5YULJmN55dF+zEajmoDgjnuAESIIm54iSKR0VwKpFrvQ9hWLn88RTr2deqwSOw0A==","signatures":[{"sig":"MEUCIHP/aXcPOphyxHb8AFIx1wYQHnCJIf05XemE12McsEHlAiEApsUxsmf197AMccUl/8cK34whxrIRF7Dz4mW40o8Ttt8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjDLABACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqorw/+J1k2CBx9NsYnFKEtH1kHTlvUb37b6TxDYzvrjROw7Tp5Yo/1\r\nIkxlu3d8y6dOiLJePAFDOb+eHOxJQdJloDZAlGp37sRhNgZH+R5/Zcv+OicI\r\nGqIA0wU5rI5+HXu7mdVQOTvu0lYbuAqOvdSJ72wvfVFgdY9/tDeXXFikWFjY\r\n5BP6rF7G123bs6osrOw7VDz33oLZWL0YVg5X9yvd2dA/e44IbcghBD5ng35v\r\n8QVUdQ2ggvjP37Bnu+1gqpWAZHR6YU5NDKlAsnV+seFrtnu24+2ImqDaazBi\r\nBh8pvbqxQdvRi27lHfCPq1/Q4dAODvCtZMkBT6ItiX14UfLV7lB5HHoM+wPc\r\nTbF3fmUD34ar0jdqyiD8NXJC9zC/qE7H7cu0uy91ghIRM6Z9VtdV5/glzJ49\r\n3iRwGF43dDFc4sabytuMuwM+VsVQcIMsjFovb62yCpejTbfa77yDDJng3M3V\r\nbhvqI7TrzocVCneoV8snYtT2mcFDhTAh5t1yc/6iUgbX8UMf3D+WfkeQ316V\r\naoSdqlU3C/NF2savbMrNbqg7RZvGOuzQm+wWYNGIV+VtQL5EQB80EUfUHk2y\r\nHSUVKN+0/T0A1t0nC8diSVT2k/yFY5MCTtrGo3+8d3gLUOxw1xnDvxKGDcfH\r\ndGoUP299QcFiDs8swuSBAQE8n93wXNRj+Xk=\r\n=P3gl\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","_from":"file:rehype-mdx-title-2.0.0.tgz","types":"./index.d.ts","engines":{"node":">=14"},"exports":"./index.js","funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"c8 tsx test.ts","start":"tsx watch test.ts","prepack":"tsc --noEmit false"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"_resolved":"/home/runner/work/rehype-mdx-title/rehype-mdx-title/rehype-mdx-title-2.0.0.tgz","_integrity":"sha512-IemxnNjM+mrABwH2V0UQjg5YULJmN55dF+zEajmoDgjnuAESIIm54iSKR0VwKpFrvQ9hWLn88RTr2deqwSOw0A==","repository":{"url":"git+https://github.com/remcohaszing/rehype-mdx-title.git","type":"git"},"_npmVersion":"8.18.0","description":"A rehype MDX plugin for exposing the page title","directories":{},"_nodeVersion":"18.8.0","dependencies":{"unified":"^10.0.0","@types/hast":"^2.0.0","unist-util-visit":"^4.0.0","hast-util-to-string":"^2.0.0","estree-util-is-identifier-name":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.0.0","tsx":"^3.0.0","uvu":"^0.5.0","eslint":"^8.0.0","prettier":"^2.0.0","to-vfile":"^7.0.0","rehype-raw":"^6.0.0","typescript":"^4.0.0","@mdx-js/mdx":"^2.0.0","@types/node":"^18.0.0","mdast-util-mdx":"^2.0.0","eslint-plugin-react":"^7.0.0","eslint-plugin-jsx-a11y":"^6.0.0","eslint-config-remcohaszing":"^6.0.0","@typescript-eslint/eslint-plugin":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rehype-mdx-title_2.0.0_1661775873641_0.7039560440630044","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"rehype-mdx-title","version":"3.0.0","keywords":["html","markdown","hast","mdx","rehype","rehype-plugin","unified"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"rehype-mdx-title@3.0.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/rehype-mdx-title#readme","bugs":{"url":"https://github.com/remcohaszing/rehype-mdx-title/issues"},"dist":{"shasum":"4c1e66b23d460468ac83cf966823679bb7fcd518","tarball":"https://registry.npmjs.org/rehype-mdx-title/-/rehype-mdx-title-3.0.0.tgz","fileCount":5,"integrity":"sha512-3Cg676fEyQ6SvPz57nMqpzU09kgh7QAMOnjiYZHuhEHa9jjEuaR8ftlUyCeyKD4uGyzg7aa5pYEgaNDO0Au+Fg==","signatures":[{"sig":"MEYCIQCY1kI2wrq+XMPBERhE8dHTHvwUArlvE7yNAV4ylULyngIhAL3+xJxw8VtPGLFfod9n32w5Q+0olK43RX4MEyxDhIh4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7659},"type":"module","_from":"file:rehype-mdx-title-3.0.0.tgz","types":"./index.d.ts","exports":"./index.js","funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"c8 tsx test.ts","start":"tsx watch test.ts","prepack":"tsc --noEmit false"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"_resolved":"/home/runner/work/rehype-mdx-title/rehype-mdx-title/rehype-mdx-title-3.0.0.tgz","_integrity":"sha512-3Cg676fEyQ6SvPz57nMqpzU09kgh7QAMOnjiYZHuhEHa9jjEuaR8ftlUyCeyKD4uGyzg7aa5pYEgaNDO0Au+Fg==","repository":{"url":"git+https://github.com/remcohaszing/rehype-mdx-title.git","type":"git"},"_npmVersion":"10.1.0","description":"A rehype MDX plugin for exposing the page title","directories":{},"_nodeVersion":"20.9.0","dependencies":{"unified":"^11.0.0","@types/hast":"^3.0.0","hast-util-to-string":"^3.0.0","unist-util-visit-parents":"^6.0.0","estree-util-is-identifier-name":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","tsx":"^3.0.0","eslint":"^8.0.0","prettier":"^3.0.0","to-vfile":"^8.0.0","rehype-raw":"^7.0.0","remark-cli":"^11.0.0","typescript":"^5.0.0","@mdx-js/mdx":"^3.0.0","@types/node":"^20.0.0","eslint-plugin-react":"^7.0.0","eslint-plugin-jsx-a11y":"^6.0.0","eslint-config-remcohaszing":"^10.0.0","remark-preset-remcohaszing":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rehype-mdx-title_3.0.0_1698413567290_0.5934577987657577","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"rehype-mdx-title","version":"3.1.0","keywords":["html","markdown","hast","mdx","rehype","rehype-plugin","unified"],"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","_id":"rehype-mdx-title@3.1.0","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"homepage":"https://github.com/remcohaszing/rehype-mdx-title#readme","bugs":{"url":"https://github.com/remcohaszing/rehype-mdx-title/issues"},"dist":{"shasum":"c1993c4ad321cca4aaabc5c7131f73e03aa31c82","tarball":"https://registry.npmjs.org/rehype-mdx-title/-/rehype-mdx-title-3.1.0.tgz","fileCount":8,"integrity":"sha512-xzzql+2l8q3g3pqli//8CZvqJ8k1VRQWn5xfLG6KOoJ95QRzw0C2QRtuOH/hPC/NJu0EXgqNqxzPaZTM822pxg==","signatures":[{"sig":"MEUCIEfAhFqDQYxhcjce0Ok4K2P2tbM7qSsIbwgKhGvfqHO0AiEA0YBS/7BM1O/DSLjbH4DbjOzYIuJCeR6eq2ii0TKRgvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12854},"main":"./dist/rehype-mdx-title.js","type":"module","_from":"file:rehype-mdx-title-3.1.0.tgz","types":"./dist/rehype-mdx-title.d.ts","exports":"./dist/rehype-mdx-title.js","funding":"https://github.com/sponsors/remcohaszing","scripts":{"test":"c8 node --enable-source-maps dist/rehype-mdx-title.test.js","prepack":"tsc --build","pretest":"tsc --build"},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"_resolved":"/home/runner/work/rehype-mdx-title/rehype-mdx-title/rehype-mdx-title-3.1.0.tgz","_integrity":"sha512-xzzql+2l8q3g3pqli//8CZvqJ8k1VRQWn5xfLG6KOoJ95QRzw0C2QRtuOH/hPC/NJu0EXgqNqxzPaZTM822pxg==","repository":{"url":"git+https://github.com/remcohaszing/rehype-mdx-title.git","type":"git"},"_npmVersion":"10.5.0","description":"A rehype MDX plugin for exposing the page title","directories":{},"_nodeVersion":"20.12.2","dependencies":{"unified":"^11.0.0","@types/hast":"^3.0.0","hast-util-to-string":"^3.0.0","hast-util-heading-rank":"^3.0.0","unist-util-visit-parents":"^6.0.0","estree-util-is-identifier-name":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.0.0","eslint":"^8.0.0","prettier":"^3.0.0","rehype-raw":"^7.0.0","remark-cli":"^12.0.0","typescript":"^5.0.0","@mdx-js/mdx":"^3.0.0","@types/node":"^20.0.0","snapshot-fixtures":"^1.0.0","eslint-plugin-react":"^7.0.0","eslint-plugin-jsx-a11y":"^6.0.0","eslint-config-remcohaszing":"^10.0.0","remark-preset-remcohaszing":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/rehype-mdx-title_3.1.0_1713528858290_0.8435848841858733","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"rehype-mdx-title","version":"3.2.0","description":"A rehype MDX plugin for exposing the page title","main":"./dist/rehype-mdx-title.js","exports":"./dist/rehype-mdx-title.js","type":"module","author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/remcohaszing/rehype-mdx-title.git"},"bugs":{"url":"https://github.com/remcohaszing/rehype-mdx-title/issues"},"homepage":"https://github.com/remcohaszing/rehype-mdx-title#readme","funding":"https://github.com/sponsors/remcohaszing","keywords":["html","markdown","hast","mdx","rehype","rehype-plugin","unified"],"scripts":{"prepack":"tsc --build","pretest":"tsc --build","test":"c8 node --enable-source-maps dist/rehype-mdx-title.test.js"},"dependencies":{"@types/hast":"^3.0.0","hast-util-heading-rank":"^3.0.0","hast-util-to-string":"^3.0.0","unified":"^11.0.0","unist-util-mdx-define":"^1.0.0","unist-util-visit-parents":"^6.0.0"},"devDependencies":{"@mdx-js/mdx":"^3.0.0","@types/node":"^22.0.0","c8":"^9.0.0","eslint":"^8.0.0","eslint-config-remcohaszing":"^10.0.0","eslint-plugin-jsx-a11y":"^6.0.0","eslint-plugin-react":"^7.0.0","prettier":"^3.0.0","rehype-raw":"^7.0.0","remark-cli":"^12.0.0","remark-preset-remcohaszing":"^3.0.0","snapshot-fixtures":"^1.0.0","typescript":"^5.0.0"},"_id":"rehype-mdx-title@3.2.0","types":"./dist/rehype-mdx-title.d.ts","_integrity":"sha512-/RSVBPQNcEzy8L3F6trvJc7U+S4MgNi8d5Lnpx29wF5isfpA/fPY+BFERj1J3j3R2VgC1UWmrqTlgq7Tf8ytZA==","_resolved":"/home/runner/work/rehype-mdx-title/rehype-mdx-title/rehype-mdx-title-3.2.0.tgz","_from":"file:rehype-mdx-title-3.2.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-/RSVBPQNcEzy8L3F6trvJc7U+S4MgNi8d5Lnpx29wF5isfpA/fPY+BFERj1J3j3R2VgC1UWmrqTlgq7Tf8ytZA==","shasum":"7ea61ad6b6355e69f0135bc7719940cce4b22f05","tarball":"https://registry.npmjs.org/rehype-mdx-title/-/rehype-mdx-title-3.2.0.tgz","fileCount":8,"unpackedSize":10325,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCYJxOd9AwiasgU8/nquPCUZBB5wg02cwA/w2J2umwPVQIgHFMqiGr/Q9wuwop3KP4RI4gHtbF3xSOYhb5jOconBnY="}]},"_npmUser":{"name":"remcohaszing","email":"remcohaszing@gmail.com"},"directories":{},"maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rehype-mdx-title_3.2.0_1742753473710_0.5145231006167432"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-08T13:45:26.355Z","modified":"2025-03-23T18:11:14.138Z","1.0.0":"2021-05-08T13:45:26.507Z","2.0.0":"2022-08-29T12:24:33.801Z","3.0.0":"2023-10-27T13:32:47.657Z","3.1.0":"2024-04-19T12:14:18.491Z","3.2.0":"2025-03-23T18:11:13.969Z"},"bugs":{"url":"https://github.com/remcohaszing/rehype-mdx-title/issues"},"author":{"name":"Remco Haszing","email":"remcohaszing@gmail.com"},"license":"MIT","homepage":"https://github.com/remcohaszing/rehype-mdx-title#readme","keywords":["html","markdown","hast","mdx","rehype","rehype-plugin","unified"],"repository":{"type":"git","url":"git+https://github.com/remcohaszing/rehype-mdx-title.git"},"description":"A rehype MDX plugin for exposing the page title","maintainers":[{"name":"remcohaszing","email":"remcohaszing@gmail.com"}],"readme":"# rehype-mdx-title\n\n[![github actions](https://github.com/remcohaszing/rehype-mdx-title/actions/workflows/ci.yaml/badge.svg)](https://github.com/remcohaszing/rehype-mdx-title/actions/workflows/ci.yaml)\n[![codecov](https://codecov.io/gh/remcohaszing/rehype-mdx-title/branch/main/graph/badge.svg)](https://codecov.io/gh/remcohaszing/rehype-mdx-title)\n[![npm version](https://img.shields.io/npm/v/rehype-mdx-title)](https://www.npmjs.com/package/rehype-mdx-title)\n[![npm downloads](https://img.shields.io/npm/dm/rehype-mdx-title)](https://www.npmjs.com/package/rehype-mdx-title)\n\nA [rehype](https://github.com/rehypejs/rehype) MDX plugin for exposing the page title\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [API](#api)\n  - [Options](#options)\n- [Compatibility](#compatibility)\n- [License](#license)\n\n## Installation\n\n```sh\nnpm install rehype-mdx-title\n```\n\n## Usage\n\nThis plugins exports the page title as a string. If multiple matching headers are found, othe\nhighest ranking header is used. If multiple headers are found with the same rank, the first one in\nthe document is used. The header is converted to a string using\n[`mdast-util-to-string`](https://github.com/syntax-tree/mdast-util-to-string#readme)\n\nFor example, given a file named `example.mdx` with the following contents:\n\n```mdx\n# The [answer](https://www.google.com/search?q=What+is+answer+to+life+the+universe+and+everything) to _life_, the `universe`, and **everything**\n\n{title} is 42\n```\n\nThe following script:\n\n```js\nimport { readFile } from 'node:fs/promises'\n\nimport { compile } from '@mdx-js/mdx'\nimport rehypeMdxTitle from 'rehype-mdx-title'\n\nconst { value } = await compile(await readFile('example.mdx'), {\n  jsx: true,\n  rehypePlugins: [rehypeMdxTitle]\n})\nconsole.log(value)\n```\n\nRoughly yields:\n\n```jsx\nexport const title = 'The answer to life, the universe, and everything'\n\nexport default function MDXContent() {\n  return (\n    <>\n      <h1>\n        {'The '}\n        <a href=\"https://www.google.com/search?q=What+is+answer+to+life+the+universe+and+everything\">\n          answer\n        </a>\n        {' to '}\n        <em>life</em>\n        {', the '}\n        <code>universe</code>\n        {', and '}\n        <strong>everything</strong>\n      </h1>\n      <p>\n        {title}\n        {' is 42'}\n      </p>\n    </>\n  )\n}\n```\n\nUse [`rehype-raw`](https://github.com/rehypejs/rehype-raw) if you wish to use custom `<h1>` headers.\nThis only works if the MDX `format` option is set to `'md'`. Beware this also changes the MDX\ncomponent output.\n\n## API\n\n### Options\n\n- `name` (`string`) — The name of the variable to export the title as. (default: `'title'`)\n- `maxRank` (`number`) — The maximum heading rank to consider. (default: `1`)\n\nIn addition it supports `unist-util-mdx-define`\n[options](https://github.com/remcohaszing/unist-util-mdx-define#options).\n\n## Compatibility\n\nThis project is compatible with Node.js 16 or greater.\n\n## License\n\n[MIT](LICENSE.md) © [Remco Haszing](https://github.com/remcohaszing)\n","readmeFilename":"README.md"}