MCPcopy Index your code
hub / github.com/Thinkmill/react-markings

github.com/Thinkmill/react-markings @v1.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.0 ↗ · + Follow
3 symbols 6 edges 3 files 0 documented · 0% updated 7y ago★ 880
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-markings

Markdown in components, components in markdown

  • Allows you to write markdown using commonmark.js
  • Renders markdown as React elements using commonmark-react-renderer
  • Embed React components inside your markdown (in any paragraph position) like this:
import * as React from 'react';
import md from 'react-markings';

function Example() {
  return (
    <pre>
      <code>...</code>
    </pre>
  );
}

export default function ReadMe() {
  return md`
    # react-markings

    > Markdown in components, components in markdown

    - Allows you to write markdown using [commonmark.js](https://github.com/commonmark/commonmark.js)
    - Renders markdown as React elements using [commonmark-react-renderer](https://github.com/rexxars/commonmark-react-renderer)
    - Embed React components inside your markdown (in any paragraph position) like this:

    ${<Example/>}
  `;
}

If you want to customize rendering further, you can use customize to pass your own renderers.

import * as React from 'react';
import md from 'react-markings';

let customMd = md.customize({
  renderers: {
    // customize heading with class
    heading: props => React.createElement('h' + props.level, { className: 'fancy-heading' }, props.children),
  },
});

export default function CustomHeading() {
  return customMd`
    # Fancy Heading
  `;
}

Core symbols most depended-on inside this repo

stripIndent
called by 1
index.js
validate
called by 1
index.js
customize
called by 1
index.js

Shape

Function 3

Languages

TypeScript100%

Modules by API surface

index.js3 symbols

For agents

$ claude mcp add react-markings \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact