Skip to content

Commit

Permalink
Handle multiple H1 titles gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer committed Oct 5, 2021
1 parent af50ed2 commit 170194b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions product_docs/docs/livecompare/1.17/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
navTitle: LiveCompare
navigation:
- index
- requirements
Expand All @@ -11,13 +10,15 @@ navigation:
- settings
- appendix_a
- appendix_b
title: Introduction
title: LiveCompare
originalFilePath: index.md

---

© Copyright EnterpriseDB UK Limited 2019-2021 - All rights reserved.

# Introduction

LiveCompare is designed to compare any number of databases to verify they are
identical. The tool compares any number databases and generates a comparison
report, a list of differences and handy DML scripts so the user can optionally
Expand Down
2 changes: 1 addition & 1 deletion scripts/source/livecompare.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function livecompareTransformer() {
{
const node = tree.children[i];
if (node.type !== "jsx") stub = false;
if (node.type === "heading" && node.depth === 1)
if (node.type === "heading" && node.depth === 1 && !title)
{
title = mdast2string(node);
tree.children.splice(i--,1);
Expand Down

0 comments on commit 170194b

Please sign in to comment.