-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkboxes #22
Checkboxes #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dude! this is sweet.... just a few small changes please.
@johncorrelli addressed the review feedback in the fixup commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the changes! Just one last been of feedback from a QA perspective.... I think those should do the trick, but I didn't checkout your code, so I'm not 100% sure.
c657e07
to
2f0498a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johncorrelli do you want me to squash this all up? |
2f0498a
to
19fd0ab
Compare
b8608eb
to
1b2a67a
Compare
- React-markdown-renderer seems to have been abandoned and lacks functionality to customize individual nodes. It seems to be a pretty straight forward swap, with exception to how the syntax highlight works.
1b2a67a
to
af29aa2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your #hacktoberfest contribution @bradbumbalough - it is much appreciated!
This allows for toggling checkboxes in real time. In order to do this, I had to swap the markdown renderer library so we could better tap into the core renderers.
Essentially, it scrubs through the note and finds checkboxes, and inserts an empty url into the label for the line index. Then, when the Checkbox component receives the children (as valid React JSX ) to render, it grabs the
href
attribute as the "key" to use when updating the checkbox on toggle.