Skip to content

Commit 3b49c7e

Browse files
committed
only show differences
1 parent 88c5de3 commit 3b49c7e

File tree

1 file changed

+2
-1
lines changed
  • crates/quarto-markdown-pandoc/tools/pandoc-diff/src

1 file changed

+2
-1
lines changed

crates/quarto-markdown-pandoc/tools/pandoc-diff/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState } from 'react'
22
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/react'
33
import { create } from 'jsondiffpatch'
4-
import { format } from 'jsondiffpatch/formatters/html'
4+
import { format, hideUnchanged } from 'jsondiffpatch/formatters/html'
55
import './jsondiffpatch.css'
66

77
interface CompareResult {
@@ -12,6 +12,7 @@ interface CompareResult {
1212
}
1313

1414
function App() {
15+
hideUnchanged();
1516
const [markdown, setMarkdown] = useState('')
1617
const [result, setResult] = useState<CompareResult | null>(null)
1718
const [loading, setLoading] = useState(false)

0 commit comments

Comments
 (0)