Closed Nadran20 closed 3 years ago
Please see the guide in the readme on how to use directives https://github.com/remarkjs/remark-directive#use And see https://github.com/remarkjs/react-markdown/issues/585#issue-871290173 for an example with react-markdown. You need to define how you want to transform directives to HTML/React components.
Subject of the issue
Impossible to choose an element or to add a class or an id. I try to change the elements of the containers, and/or add a class or an id but nothing happens, it always becomes a simple div.
Your environment
react-markdown
:^6.0.0
,remark-directive
:^1.0.1
node
:v12.20.0
,yarn
:v1.22.10
Steps to reproduce
my code :
Expected behavior
my markdown file :
result in my app :
Actual behavior