Questions tagged [react-markdown]

86 questions
0
votes
0 answers

Rich Markdown Editor

So I've been trying to integrate a rich markdown editor in my application (react), And I am facing some issues that is not listed in the documenation of the rich markdown editor. I am facing an issue where I don't know where to set the actual height…
infamous hvher
  • 171
  • 1
  • 3
  • 8
0
votes
1 answer

Plugins in react markdown with next.js does not work

I have a project that uses next.js in the frontend and strapi in the backend. For rendering the reach text of strapi that uses markdown, I use ReactMarkdown package version "6.0.3", in the frontend. It works well - except the strikethrough and the…
Nathan Barel
  • 348
  • 2
  • 14
0
votes
1 answer

Ordered list using react-markdown

I am trying to render an ordered list using react-markdown: import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm' const MyComponent = () => { const markdown = `
  1. Item1
  2. Item2
`; return ( …
AlwaysLearning
  • 7,257
  • 4
  • 33
  • 68
0
votes
1 answer

react-markdown shows div instead of element tag when using custom component

I'm trying to write a custom plugin for underline support ( with ~the underlined text~ syntax ) in react-markdown ( remark ) and the problem is the result uses div tag instead of ins. here is the plugin: const UNDERLINE_REGEX = /~(.*)~/g; const…
amdigbari
  • 21
  • 3
0
votes
0 answers

react-markdown - bold after slash

So this does not work for me {'**test/**test'} However, this does {'**test/test**test'} It seems that the double asterisk doesn't work directly after /. Any ideas? Thanks
Amaros
  • 503
  • 5
  • 20
0
votes
1 answer

How can I implement react-markdown within a react-table cell?

In the app I am currently working on, there is a "Description" column which I would like to have rich text. This would be stored in my database in Markdown format. Is there anyway when using react-table to have cells contain content in another…
RyanM
  • 25
  • 4
0
votes
2 answers

React Markdown type for paragraph renderer

I could not find anything, neither on GitHub nor index.d.ts of the package react.markdown. It looks like a very simple example, yet the entire Google does not contain any example. I wrote a custom renderer for a Markdown component, but I could not…
Yilmaz
  • 35,338
  • 10
  • 157
  • 202
0
votes
1 answer

How to add react reference to HTMLCollection items?

I'm trying to access attach references to each paragraph/heading in react-markdown. But I can't figure out how to add a ref to c below. const children = Array.from(div.children) children?.forEach((c, i) => { // c =

...

or

...

//…
mattorp
  • 31
  • 6
-1
votes
1 answer

how to convert markdown to html?

I want to convert a string as (markdown) to html. There are other libraries like react-markdown But libraries like this are meant to render the markdown as The above is a react element. I dont want to render it .…
Ahmer Saud
  • 130
  • 10
-1
votes
2 answers

Regex space and special character selector

I'm using rich text editor. I convert html output to markdown. I have a problem like that; If I type **text** it works. But if I type like that **text ** (space after word) my app doesn't recognise markdown. So I want to select space and * or space…
Abdulkadir KG
  • 83
  • 1
  • 8
-1
votes
1 answer

React-Markdown Error: Must use import to load ES Module:

I try to install react-markdown to my nextjs project, but getting instantly following error when I try to use it. My Code: import React from 'react' import ReactMarkdown from 'react-markdown' export function Markdown({ markdown }: { markdown:…
Antoni
  • 1,316
  • 2
  • 16
  • 42
1 2 3 4 5
6