File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const Example = ({ node }: { node: Block }) => {
2020 >
2121 < summary className = "title" > { parse ( title ) } </ summary >
2222 < div className = "content" >
23+ { node . content && parse ( node . content ) }
2324 < Content blocks = { node . blocks } />
2425 </ div >
2526 </ details >
@@ -34,6 +35,7 @@ const Example = ({ node }: { node: Block }) => {
3435 >
3536 < Title text = { node . title } />
3637 < div className = "content" >
38+ { node . content && parse ( node . content ) }
3739 < Content blocks = { node . blocks } />
3840 </ div >
3941 </ div >
Original file line number Diff line number Diff line change 11import cn from 'classnames'
2+ import parse from 'html-react-parser'
23
34import { Content } from '../'
45import { type BaseBlock } from '../utils/prepareDocument'
@@ -15,6 +16,7 @@ const Open = ({ node }: { node: BaseBlock }) => {
1516 >
1617 < Title text = { node . title } />
1718 < blockquote className = "content" >
19+ { node . content && parse ( node . content ) }
1820 < Content blocks = { node . blocks } />
1921 </ blockquote >
2022 </ div >
@@ -28,6 +30,7 @@ const Open = ({ node }: { node: BaseBlock }) => {
2830 >
2931 < Title text = { node . title } />
3032 < div className = "content" >
33+ { node . content && parse ( node . content ) }
3134 < Content blocks = { node . blocks } />
3235 </ div >
3336 </ div >
Original file line number Diff line number Diff line change 11import cn from 'classnames'
2+ import parse from 'html-react-parser'
23
34import { Content } from '../'
45import { type Block } from '../utils/prepareDocument'
@@ -11,6 +12,7 @@ const Sidebar = ({ node }: { node: Block }) => (
1112 >
1213 < div className = "content" >
1314 < Title text = { node . title } />
15+ { node . content && parse ( node . content ) }
1416 < Content blocks = { node . blocks } />
1517 </ div >
1618 </ div >
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ AsciiDoc was first released in Nov 2002 by Stuart Rackham.
2121It was designed from the start to be a shorthand syntax
2222for producing professional documents like DocBook and LaTeX.
2323****
24+
25+ [sidebar]
26+ AsciiDoc was first released in Nov 2002 by Stuart Rackham.
27+ It was designed from the start to be a shorthand syntax
28+ for producing professional documents like DocBook and LaTeX.
2429`
2530
2631export default sidebar
You can’t perform that action at this time.
0 commit comments