mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
858b3e8345
commit
ee6a17e102
3 changed files with 15 additions and 6 deletions
|
@ -152,7 +152,7 @@
|
|||
"less-loader": "4.0.5",
|
||||
"lodash": "3.10.1",
|
||||
"lru-cache": "4.1.1",
|
||||
"markdown-it": "8.3.2",
|
||||
"markdown-it": "^8.4.1",
|
||||
"minimatch": "2.0.10",
|
||||
"mkdirp": "0.5.1",
|
||||
"moment": "^2.20.1",
|
||||
|
|
|
@ -17,6 +17,15 @@ test('should never render html tags', () => {
|
|||
expect(component).toMatchSnapshot(); // eslint-disable-line
|
||||
});
|
||||
|
||||
test('should render links with parentheses correctly', () => {
|
||||
const component = shallow(
|
||||
<Markdown
|
||||
markdown="[link](https://example.com/foo/bar?group=(()filters:!t))"
|
||||
/>
|
||||
);
|
||||
expect(component.render().find('a').prop('href')).toBe('https://example.com/foo/bar?group=(()filters:!t)');
|
||||
});
|
||||
|
||||
describe('props', () => {
|
||||
|
||||
const markdown = 'I am *some* [content](https://en.wikipedia.org/wiki/Content) with `markdown`';
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -8338,15 +8338,15 @@ markdown-escapes@^1.0.0:
|
|||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.1.tgz#1994df2d3af4811de59a6714934c2b2292734518"
|
||||
|
||||
markdown-it@8.3.2:
|
||||
version "8.3.2"
|
||||
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-8.3.2.tgz#df4b86530d17c3bc9beec3b68d770b92ea17ae96"
|
||||
markdown-it@^8.4.1:
|
||||
version "8.4.1"
|
||||
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-8.4.1.tgz#206fe59b0e4e1b78a7c73250af9b34a4ad0aaf44"
|
||||
dependencies:
|
||||
argparse "^1.0.7"
|
||||
entities "~1.1.1"
|
||||
linkify-it "^2.0.0"
|
||||
mdurl "^1.0.1"
|
||||
uc.micro "^1.0.3"
|
||||
uc.micro "^1.0.5"
|
||||
|
||||
marked-text-renderer@0.1.0:
|
||||
version "0.1.0"
|
||||
|
@ -12560,7 +12560,7 @@ ua-parser-js@^0.7.9:
|
|||
version "0.7.17"
|
||||
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac"
|
||||
|
||||
uc.micro@^1.0.1, uc.micro@^1.0.3:
|
||||
uc.micro@^1.0.1, uc.micro@^1.0.5:
|
||||
version "1.0.5"
|
||||
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-1.0.5.tgz#0c65f15f815aa08b560a61ce8b4db7ffc3f45376"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue