Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/asciidoc/templates/Example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const Example = ({ node }: { node: Block }) => {
>
<summary className="title">{parse(title)}</summary>
<div className="content">
{node.content && parse(node.content)}
<Content blocks={node.blocks} />
</div>
</details>
Expand All @@ -34,6 +35,7 @@ const Example = ({ node }: { node: Block }) => {
>
<Title text={node.title} />
<div className="content">
{node.content && parse(node.content)}
<Content blocks={node.blocks} />
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions src/asciidoc/templates/Open.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cn from 'classnames'
import parse from 'html-react-parser'

import { Content } from '../'
import { type BaseBlock } from '../utils/prepareDocument'
Expand All @@ -15,6 +16,7 @@ const Open = ({ node }: { node: BaseBlock }) => {
>
<Title text={node.title} />
<blockquote className="content">
{node.content && parse(node.content)}
<Content blocks={node.blocks} />
</blockquote>
</div>
Expand All @@ -28,6 +30,7 @@ const Open = ({ node }: { node: BaseBlock }) => {
>
<Title text={node.title} />
<div className="content">
{node.content && parse(node.content)}
<Content blocks={node.blocks} />
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/asciidoc/templates/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cn from 'classnames'
import parse from 'html-react-parser'

import { Content } from '../'
import { type Block } from '../utils/prepareDocument'
Expand All @@ -11,6 +12,7 @@ const Sidebar = ({ node }: { node: Block }) => (
>
<div className="content">
<Title text={node.title} />
{node.content && parse(node.content)}
<Content blocks={node.blocks} />
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/examples/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ AsciiDoc was first released in Nov 2002 by Stuart Rackham.
It was designed from the start to be a shorthand syntax
for producing professional documents like DocBook and LaTeX.
****

[sidebar]
AsciiDoc was first released in Nov 2002 by Stuart Rackham.
It was designed from the start to be a shorthand syntax
for producing professional documents like DocBook and LaTeX.
`

export default sidebar