MarkdownGenerator

STRUCT

MarkdownHeader

Renders a Markdown Header

Markdown supports two styles of headers, Setext and atx.

Setext-style headers are “underlined” using equal signs (for first-level headers) and dashes (for second-level headers). For example:

This is an H1
=============

This is an H2
-------------

Atx-style headers use 1-6 hash characters at the start of the line, corresponding to HTML header levels 1-6. For example:

# This is an H1

## This is an H2

###### This is an H6

Atx-style headers can be closed (this is purely cosmetic):

# This is an H1 #

## This is an H2 ##

### This is an H3 ###

Properties

markdown

Generated Markdown output

Methods

init(title:level:style:close:)

MarkdownHeader initializer.