-
Notifications
You must be signed in to change notification settings - Fork 104
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
fix(ui-markdown-editor): Fixes functionalities of the toolbar in mark… #367
Conversation
…down editor - # 364 Signed-off-by: Abhijith Ganesh <[email protected]>
Signed-off-by: Abhijith Ganesh <[email protected]>
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.
I don't understand functionally what has been changed here. I see quoting has been changed and some comments added. Can you please elaborate on the issue that you are trying to fix?
setSlateValue(slateChildren); | ||
const edited_markdown = slateTransformer.toMarkdown(SlateValue); | ||
|
||
/* | ||
Actions are a feature of stories which allow live changes to be recorded in an action. | ||
(https://storybook.js.org/docs/react/essentials/actions#gatsby-focus-wrapper) | ||
*/ | ||
|
||
action("onSlateValueChange")(slateChildren); | ||
action("setMarkdown")(edited_markdown); | ||
}); |
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.
@dselman If you see here, I changed how the way Markdown is rendered, it previously didn't render the ordered lists correctly. After these changes, It renders correctly. I have also mentioned the docs related to storybook
Signed-off-by: Abhijith Ganesh <[email protected]>
Signed-off-by: Abhijith Ganesh <[email protected]>
) Signed-off-by: TC5022 <[email protected]> Signed-off-by: Abhijith Ganesh <[email protected]>
…down editor - # 364 Signed-off-by: Abhijith Ganesh <[email protected]>
Signed-off-by: Abhijith Ganesh <[email protected]>
Signed-off-by: Abhijith Ganesh <[email protected]>
…down editor - # 364
Signed-off-by: Abhijith Ganesh [email protected]
Closes #364
Changes
useMemo
bugs, moved touseState
anduseCallback
Action
Flags
Screenshots or Video
Author Checklist
--signoff
option of git commit.master
fromfork:branchname