Skip to content

v0.6.0

Choose a tag to compare

@lxsmnsyc lxsmnsyc released this 03 Oct 05:58
· 19 commits to main since this release

This release adds solid-marked/component, which exports a Markdown component you can use to render Markdown during runtime.

import Markdown from 'solid-marked/component';

const content = (
  <Markdown
    builtins={{
      Root(props) {
        return (
          <div>
            {props.children}
          </div>
        );
      },
      Blockquote(props) {
        return (
          <blockquote>
            {props.children}
          </blockquote>
        );
      },
    }}
  >
    {'> This is a blockquote.'}
  </Markdown>
);

Other changes:

  • Drop support for Footnote component, in compliance with mdast.