You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue for a requested new control within EUI: a Markdown-wrapper.
Specifically, I would love to be able to pass something close to if not identical to GitHub Markdown. This may not align very well with existing Kibana Markdown needs though, and I can see certain desirable limitations (e.g., not supporting images).
Imagine this kind of text coming in:
Hey name,
I was hoping that you could answer some questions about this:
> Earlier quote asking about `code`
Sure, what you are looking to do is:
```js
This is a code block
```
You can review that [here](http://some-link.example).
Hope that helps,
Chris
Beyond that our native blockquote CSS looks very different, this should render as something like
<p>Hey name,</p><p>Iwashopingthatyoucouldanswersomequestionsaboutthis:</p><blockquote>Earlier quote asking about <EuiCode>code</EuiCode></blockquote><p>Sure,whatyouarelookingtodois:</p><EuiCodeBlocklanguage="js">This is a code block</EuiCodeBlock><p>Youcanreview<EuiLinkhref="http://some-link.example"target="_blank">here</EuiLink>.
</p><p>
Hope that helps,
<br/>
Chris
<p>
@i-a-n if you wanted to kickstart a PR when you're happy with it, we could take it over and clean up design / accessibility and likely CSP issues that will arise. There's definitely a want for this component, but my guess is it would take a few weeks to get polished where we'd feel comfortable having usage in a place like cloud and you likely don't have time for all the touchup work. But by all means give us a start with what you've got and we can do some work on it.
sounds good @snide , thanks. I have one outstanding issue to resolve regarding how the text insertion works, but once that's complete I'll open a PR here.
Activity
i-a-n commentedon Dec 3, 2019
note that this has been developed for the Dream Machine project here: https://github.com/elastic/dream-machine/pull/141
could be a decent starting-off point
snide commentedon Dec 3, 2019
@i-a-n if you wanted to kickstart a PR when you're happy with it, we could take it over and clean up design / accessibility and likely CSP issues that will arise. There's definitely a want for this component, but my guess is it would take a few weeks to get polished where we'd feel comfortable having usage in a place like cloud and you likely don't have time for all the touchup work. But by all means give us a start with what you've got and we can do some work on it.
i-a-n commentedon Dec 3, 2019
sounds good @snide , thanks. I have one outstanding issue to resolve regarding how the text insertion works, but once that's complete I'll open a PR here.
ajangus commentedon Dec 5, 2019
Are there any strong feelings on what the preview button should say? @inqueue suggested
Previewinstead ofPreview markdownsnide commentedon Dec 5, 2019
This will likely go through a few rounds of design. I wouldn't worry too much about the layout or text. We can clean it up during a design pass.
ajangus commentedon Feb 20, 2020
With #2858 moving forward, closing this one.