{#if contentType === 'article' && parsedContent?.title}
{parsedContent.title}
{#if parsedContent.content}
{@const documentTags = parseSimpleAttributes(parsedContent.content)}
{#if documentTags.filter(tag => tag[0] === 't').length > 0}
Document tags:
{#each documentTags.filter(tag => tag[0] === 't') as tag}
#
{tag[1]}
{/each}
{/if}
{/if}
{/if}
{#each parsedSections as section, index}
{@html asciidoctor().convert(
`== ${section.title}\n\n${section.content}`,
{
standalone: false,
doctype: "article",
attributes: {
showtitle: true,
sectids: true,
},
},
)}
{#if section.tags && section.tags.filter(tag => tag[0] === 't').length > 0}
{#each section.tags.filter(tag => tag[0] === 't') as tag}
#
{tag[1]}
{/each}
{:else}
No hashtags
{/if}
{#if index < parsedSections.length - 1}
{/if}
{/each}