File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ This is a paragraph with a [link](https://example.com).
1515
1616< https://example.com >
1717
18+ [ ] ( https://example.com )
19+
1820https://codepen.io/team/codepen/pen/PNaGbb
1921
2022https://codesandbox.io/s/ynn88nx9x?view=split
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ describe('gatsby-remark-embedder', () => {
4141
4242 <https://example.com>
4343
44+ [](https://example.com)
45+
4446 <iframe src=\\"https://codepen.io/team/codepen/embed/preview/PNaGbb\\" style=\\"width:100%; height:300px;\\"></iframe>
4547
4648 <iframe src=\\"https://codesandbox.io/embed/ynn88nx9x?view=split\\" style=\\"width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;\\" allow=\\"geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb\\" sandbox=\\"allow-modals allow-forms allow-popups allow-scripts allow-same-origin\\"></iframe>
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export default async (
3131 const isValidLink =
3232 node . type === 'link' &&
3333 node . title === null &&
34+ node . children . length === 1 &&
3435 node . children [ 0 ] . value === node . url ;
3536 if ( ! isText && ! isValidLink ) {
3637 return ;
You can’t perform that action at this time.
0 commit comments