Skip to content

[WIP] Markdown editor - #2858

Closed
elizabetdev wants to merge 32 commits into
elastic:masterfrom
elizabetdev:markdown-editor
Closed

elizabetdev wants to merge 32 commits into
elastic:masterfrom
elizabetdev:markdown-editor

Conversation

@elizabetdev

@elizabetdev elizabetdev commented Feb 13, 2020 •

Copy link
Copy Markdown
Contributor

Summary

The idea of this Markdown Editor is to produce technical content that is easy to write and easy to read as plain text. This content can contain code, images, attached files or even embeddable components.

This PR is a follow-up of the work done in #2597.

screens

Markdown Editor Specification

The Markdown Editor Specification can be found here.

Figma Prototype / Design

The Figma Prototype can be found in Figma

Left todo

  • plugin system
  • base plugins, example of extending
  • interactive/configuration modal design, best practices
  • ideas for syntax highlight/compression/etc
  • lots of documentation
    • technical overview of the markdown editor
    • plugin architecture & how to build them
    • text editing concerns, interactions
  • plugin extension API
  • revisit the formatting instructions processing, there's some bugs floating around
  • report to the consuming app
    • collect error/info messages
      • (probably) feed this back into the editor's UX, as well
    • provide current selected node/tree
  • typescript types (for external libs)

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in IE11 and Firefox
  • Props have proper autodocs
  • Added documentation examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@ajangus ajangus mentioned this pull request Feb 20, 2020
@snide

snide commented Mar 18, 2020

Copy link
Copy Markdown
Contributor

@miukimiu Hope it's ok. I went and merged up master. I wanted to get a preview URL generated so we could show this off.

@snide

snide commented Mar 19, 2020

Copy link
Copy Markdown
Contributor

jenkins test this

@snide

snide commented Mar 19, 2020

Copy link
Copy Markdown
Contributor

One more try. Flakey test now a different error

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@elizabetdev

Copy link
Copy Markdown
Contributor Author

@snide, I manage to fix the build error.

There are a few remark plugins written in es6. When webpack is minifying with UglifyjsWebpackPlugin it fails because this plugin doesn't support es6. So I replaced it with TerserWebpackPlugin.

Not sure if it is a good idea and the implications of changing this. But I guess @chandlerprall then can implement these functionalities in a better way.

@snide

snide commented Mar 19, 2020

Copy link
Copy Markdown
Contributor

Awesome thanks! Yeah, I was just trying to get it going for the demos today. It's looking great.

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

@kibanamachine

Copy link
Copy Markdown
Contributor

* Refactored EuiMarkdownEditor and EuiMarkdownFormat to prep for future work

* pr feedback
chandlerprall and others added 5 commits May 15, 2020 22:06
* chart & tooltip plugins

* Change tooltip markdown plugin markdown format

* Fixed error with empty tooltip tag
* Checkbox plugin

* Better checkbox interaction formatting

* Use monospace font in markdown editor
@kibanamachine

Copy link
Copy Markdown
Contributor

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.

5 participants