Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added optional line numbers to `EuiCodeBlock` ([#4993](https://github.com/elastic/eui/pull/4993))
- Removed `emoticon` support and removed rendered `<div>` from `EuiMarkdownFormat` ([#5176](https://github.com/elastic/eui/pull/5176))

## [`37.7.0`](https://github.com/elastic/eui/tree/v37.7.0)

Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/markdown_editor/markdown_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EuiMarkdownFormat } from '../../../../src';

const markdownContent = `Beyond Remark's base syntax, **EuiMarkdownFormat** bundles these abilities by default:

\`:smile:\` we support emojis :smile:!
\`:smile:\` we support emojis :smile:! But not :)

\`!{tooltip[anchor text](Tooltip content)}\` syntax can render !{tooltip[tooltips like this](I am Jack's helpful tooltip content)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { markdownLinkValidator } from '../markdown_link_validator';
export const getDefaultEuiMarkdownParsingPlugins = (): PluggableList => [
[markdown, {}],
[highlight, {}],
[emoji, { emoticon: true }],
[emoji, { emoticon: false }],
[MarkdownTooltip.parser, {}],
[MarkdownCheckbox.parser, {}],
[markdownLinkValidator, {}],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import React, { createElement } from 'react';
import React, { Fragment, createElement } from 'react';
// Importing seemingly unused types from `unified` because the definitions
// are exported for two versions of TypeScript (3.4, 4.0) and implicit
// imports during eui.d.ts generation default to the incorrect version (3.4).
Expand Down Expand Up @@ -60,7 +60,8 @@ export const getDefaultEuiMarkdownProcessingPlugins = (): [
[
rehype2react,
{
createElement: createElement,
createElement,
Fragment,
components: {
a: EuiLink,
code: (props: any) =>
Expand Down