Skip to content

Is this supposed to render <input> tags for checklists? #1205

Discussion options

You must be logged in to vote

It should and it does.
An example of how it works with react-markdown which is also maintained by the remark and remark-gfm team.

import Markdown from 'react-markdown';
import remarkGfm from 'remark-gfm';

const markdownSource = `
- [ ] unchecked checkbox
- [x] checked checkbox
`;

function App() {
  return <Markdown remarkPlugins={[remarkGfm]}>{markdownSource}</Markdown>;
}

export default App;

Runnable Sandbox: https://stackblitz.com/edit/github-qq6ok1?file=src%2Fapp.tsx

The issue is likely in ChakraReactMarkdown and its customizations to react-markdown or because you have not included input in your list of allowed elements.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@GavanWilhite
Comment options

@ChristianMurphy
Comment options

Answer selected by GavanWilhite
@GavanWilhite
Comment options

@ChristianMurphy
Comment options

@GavanWilhite
Comment options

@ChristianMurphy
Comment options

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

@ChristianMurphy

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants