From 78628cd48386e3ee7664be5bbcc20a00cb9a64f9 Mon Sep 17 00:00:00 2001 From: Pedr Browne Date: Mon, 7 May 2018 16:59:26 +0100 Subject: [PATCH 1/2] Expand docs for custom components The docs for custom components only mention defining custom components in the markdown, but don't address one of the most useful aspects - that you can map generic markdown tags/elements to your own components. I've expanded the docs to point this out and added a simple example. --- .../2018-01-27---custom-components/index.md | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/examples/using-remark/src/pages/2018-01-27---custom-components/index.md b/examples/using-remark/src/pages/2018-01-27---custom-components/index.md index 4223d3637a570..4393a613eb552 100644 --- a/examples/using-remark/src/pages/2018-01-27---custom-components/index.md +++ b/examples/using-remark/src/pages/2018-01-27---custom-components/index.md @@ -11,7 +11,7 @@ tags: What if you want custom UI interactions embedded in your Markdown? -By using `rehype-react` with the `htmlAst` field, you can write custom React components and then reference them from your Markdown files. +By using `rehype-react` with the `htmlAst` field, you can write custom React components and then reference them from your Markdown files, or map generic HTML elements like `