{"repo":"jaywcjlove/rehype-rewrite","free":true,"listed":false,"github":"https://github.com/jaywcjlove/rehype-rewrite","clone":"git clone https://github.com/jaywcjlove/rehype-rewrite.git","description":"Rewrite element with rehype.","language":"TypeScript","stars":26,"topics":["rehype","rehype-plugin","rewrite","html","markdown"],"license":"MIT","category":"productivity","readme_excerpt":"Using my app is also a way to support me: rehype-rewrite === Rewrite element with rehype. Installation This package is ESM only: Node 12+ is needed to use it and it must be import instead of require . Usage 🚧 Migrate from rehype-rewrite v2.x to v3.x . Output: Options selector?: string; Select an element to be wrapped. Expects a string selector that can be passed to hast-util-select (supported selectors). If selector is not set then wrap will check for a body all elements. rewrite(node, index, parent): void; Rewrite element. Example Example 1 Output: Example 2 Output: Example 3 Output: Example 4 Output: Related - rehype-video Add improved video syntax: links to .mp4 and .mov turn into videos. - rehype-attr New syntax to add attributes to Markdown. - rehype-ignore Ignore content display via HTML comments, Shown in GitHub readme, excluded in HTML. - remark-github-blockquote-alert Remark plugin to add support for GitHub Alert. Contributors As always, thanks to our amazing contributors! Made with action-contributors. License MIT © Kenny Wong","default_branch":null,"files":null,"tree":[],"storefront":"/r/jaywcjlove","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jaywcjlove/rehype-rewrite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}