![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@adaptable/platform-remark-plugins
Advanced tools
A potpourri of remark plugins used to process .mdx files
@hashicorp/platform-remark-plugins
A potpourri of remark plugins used by HashiCorp to process markdown files.
MDX uses remark internally to process and transform markdown via plugins. We use MDX to process markdown content to build out our docs, learning guides, and write rich content from our CMS. This set of plugins ensures that written markdown is translated properly into markup.
The anchorLinks
plugin adds anchor links to headings and when a list begins with an inline code
element so that users are able to easily link to a specific place even if it is further down the page. See its readme for more details.
The includeMarkdown
plugin gives authors the ability to use a directive like `@include "filename.md" to import markdown from a separate file, like a partial. See its readme for more details.
The paragraphCustomAlerts
plugin adds a custom syntax for creating alert boxes. See its readme for more details. This plugin will be deprecated for a <Alert />
component in the future in a step to move us toward full commonmark compliance.
The typography
plugin adds css classes to certain typographical elements so that they adhere to the typography standards from our design system. See its readme for more details.
Each of the plugins are individually exposed from the default export from this module and can be used as any other remark plugin would be normally. For example, with raw mdx:
import { compileSync } from '@mdx-js/mdx'
import { typography, anchorLinks } from '@hashicorp/platform-remark-plugins'
console.log(compileSync('some markdown content', {
remarkPlugins: [typography, anchorLinks]
})
If you'd like to use all of the plugins in one shot, which is typically the case with this module, an array of all the plugins is returned from the allPlugins
export, as such:
import { compileSync } from '@mdx-js/mdx'
import allPlugins from '@hashicorp/platform-remark-plugins/all'
console.log(compileSync('some markdown content', {
remarkPlugins: allPlugins(/* options */)
})
Plugin options can be passed to allPlugins
as an object, with the keys being plugin names. For example, to pass options to headingLinkable
, you could call allPlugins({ headingLinkable: { foo: 'bar' } })
.
If you are using next-hashicorp
, all of these plugins will be included by default.
FAQs
A potpourri of remark plugins used to process .mdx files
We found that @adaptable/platform-remark-plugins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.