React-markdown: Error: Renderer for type `footnoteReference` not defined or is not renderable

Created on 8 Sep 2019  路  8Comments  路  Source: remarkjs/react-markdown

When I enable footnotes with:

                      parserOptions={{
                        footnotes: true
                      }}

Then enter [^1] into the source, it crashes with:

Error: Renderer for type `footnoteReference` not defined or is not renderable
馃憖 areexternal 馃檵 typquestion

Most helpful comment

Thanks, this one seems to handle the issue : https://github.com/remarkjs/remark/discussions/554

All 8 comments

I just ran into the same issue.

Also having the same issue, are footnotes simply not supported?

footnotes are supported through a remark plugin https://github.com/remarkjs/remark-footnotes, add the plugin and you should be able to handle footnotes

@charlex, I added the plugin but I don't get the expected behavior.

Did I miss something?

const ReactMarkdown = require("react-markdown")
const footnotes = require('remark-footnotes')

<ReactMarkdown
      plugins={[[footnotes, { inlineNotes: true }]]}
      source={source}
      escapeHtml={false}
    />

Result:

Captura de Pantalla 2020-10-19 a la(s) 12 00 27 a 聽m

Hi,
I'm getting the same error as above.

Renderer for typefootnoteReferencenot defined or is not renderable

Using react-markdown version 5.0.3 and remark-footnotes version 3.0.0.

With this code :

<ReactMarkdown children={'My markdown'} plugins={[remarkFootnotes]} />

I couldn't see how #470 solves this.

Also tried with remark-footnotes v2.0.0.

@laem this issue is specific to remark 12, what you're seeing appears to be with remark 13, and as such should probably be it's own question, react-markdown as a forum for asking questions here: https://github.com/remarkjs/remark/discussions

Thanks, this one seems to handle the issue : https://github.com/remarkjs/remark/discussions/554

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonjaffe picture jonjaffe  路  3Comments

ghost picture ghost  路  4Comments

dekryptic picture dekryptic  路  3Comments

pcvandamcb picture pcvandamcb  路  3Comments

joelin109 picture joelin109  路  3Comments