I want to support inline code block in remark-react-lowlight project. However, the specs of libraries which remark-react-lowlight depends on unable me to confirm code block is inline or not. Of course, in mdast there are differences between inlinecode and non-inlinecode, but the props bound from remark-react to remark-react-lowlight doesn't contains the differences. The difference is lost procedure to convert mdast to hast, so I don't know how to support inline code block in remark-react-lowlight.
- inline code block
e.g.
`some inline code block`
Props bound from remark-react
is
props = {
children: ["some inline code block"]
};
- code block without a specific language
e.g.
\`\`\`
some
code
block
\`\`\`
Props bound from remark-react
is
props = {
children: ["some\ncode\nblock\n"]
}
We cannot confirm code block is inline or not from props bound from 'remark-react' because the same props bound from 'remark-react';