Skip to content

Commit

Permalink
fix(gatsby-remark-autolink-headers): Fix invalid AST (#17047)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst authored and sidharthachatterjee committed Aug 24, 2019
1 parent b3ee03f commit 2d3bcb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header 1`] = `
Object {
"children": Array [
Object {
"children": Array [],
"data": Object {
"hChildren": Array [
Object {
Expand Down Expand Up @@ -69,6 +70,7 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header with custom
Object {
"children": Array [
Object {
"children": Array [],
"data": Object {
"hChildren": Array [
Object {
Expand Down Expand Up @@ -134,6 +136,7 @@ exports[`gatsby-remark-autolink-headers adds id to a markdown header with custom
Object {
"children": Array [
Object {
"children": Array [],
"data": Object {
"hChildren": Array [
Object {
Expand Down Expand Up @@ -247,6 +250,7 @@ exports[`gatsby-remark-autolink-headers maintain case of markdown header for id
Object {
"children": Array [
Object {
"children": Array [],
"data": Object {
"hChildren": Array [
Object {
Expand Down Expand Up @@ -312,6 +316,7 @@ exports[`gatsby-remark-autolink-headers maintain case of markdown header for id
Object {
"children": Array [
Object {
"children": Array [],
"data": Object {
"hChildren": Array [
Object {
Expand Down Expand Up @@ -377,6 +382,7 @@ exports[`gatsby-remark-autolink-headers maintain case of markdown header for id
Object {
"children": Array [
Object {
"children": Array [],
"data": Object {
"hChildren": Array [
Object {
Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-remark-autolink-headers/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports = (
type: `link`,
url: `#${id}`,
title: null,
children: [],
data: {
hProperties: {
"aria-label": `${label} permalink`,
Expand Down

0 comments on commit 2d3bcb3

Please sign in to comment.