Skip to content

Commit 2d3bcb3

Browse files
stefanprobstsidharthachatterjee
authored andcommitted
fix(gatsby-remark-autolink-headers): Fix invalid AST (#17047)
1 parent b3ee03f commit 2d3bcb3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: packages/gatsby-remark-autolink-headers/src/__tests__/__snapshots__/index.js.snap

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header 1`] = `
44
Object {
55
"children": Array [
66
Object {
7+
"children": Array [],
78
"data": Object {
89
"hChildren": Array [
910
Object {
@@ -69,6 +70,7 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header with custom
6970
Object {
7071
"children": Array [
7172
Object {
73+
"children": Array [],
7274
"data": Object {
7375
"hChildren": Array [
7476
Object {
@@ -134,6 +136,7 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header with custom
134136
Object {
135137
"children": Array [
136138
Object {
139+
"children": Array [],
137140
"data": Object {
138141
"hChildren": Array [
139142
Object {
@@ -247,6 +250,7 @@ exports[`gatsby-remark-autolink-headers maintain case of markdown header for id
247250
Object {
248251
"children": Array [
249252
Object {
253+
"children": Array [],
250254
"data": Object {
251255
"hChildren": Array [
252256
Object {
@@ -312,6 +316,7 @@ exports[`gatsby-remark-autolink-headers maintain case of markdown header for id
312316
Object {
313317
"children": Array [
314318
Object {
319+
"children": Array [],
315320
"data": Object {
316321
"hChildren": Array [
317322
Object {
@@ -377,6 +382,7 @@ exports[`gatsby-remark-autolink-headers maintain case of markdown header for id
377382
Object {
378383
"children": Array [
379384
Object {
385+
"children": Array [],
380386
"data": Object {
381387
"hChildren": Array [
382388
Object {

Diff for: packages/gatsby-remark-autolink-headers/src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module.exports = (
6060
type: `link`,
6161
url: `#${id}`,
6262
title: null,
63+
children: [],
6364
data: {
6465
hProperties: {
6566
"aria-label": `${label} permalink`,

0 commit comments

Comments
 (0)