Skip to content
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

Closed
wants to merge 10 commits into from

Conversation

AbhijithGanesh
Copy link

@AbhijithGanesh AbhijithGanesh commented Jan 14, 2022

…down editor - # 364

Signed-off-by: Abhijith Ganesh [email protected]

Closes #364

Changes

  • Resolution of useMemo bugs, moved to useState and useCallback
  • Addition of documented lines of code about Action

Flags

  • Changes to Hooks

Screenshots or Video

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to master from fork:branchname
  • Manual accessibility test performed
    • Keyboard-only access, including forms
    • Contrast at least WCAG Level A
    • Appropriate labels, alt text, and instructions

Abhijith Ganesh added 2 commits January 15, 2022 00:30
Copy link
Contributor

@dselman dselman left a 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?

packages/storybook/src/stories/1-MarkdownEditor.stories.js Outdated Show resolved Hide resolved
Comment on lines 117 to 127
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);
});
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatting Button Error
3 participants