@ -33,27 +33,11 @@ Parkdown currently support the following block types:
### Paragraphs
### Paragraphs
```markdown
```markdown
A simple paragraph can contain **bold text**, `inline codeblocks` and *italic text*. We can also link [with a direct url][https://google.com] *(i.e. to google)*
A simple paragraph can contain **bold text**, `inline codeblocks` and *italic text*. We can also link [with a direct url][https://google.com] *(i.e. to google)*
or via reference to [a later defined url][massivedynamic], if we so desire.
or via reference to [a later defined url][massivedynamic], i we so desire.
```
```
A simple paragraph can contain **bold text**, `inline codeblocks` and *italic text*. We can also link [with a direct url](https://google.com) *(i.e. to google)*
A simple paragraph can contain **bold text**, `inline codeblocks` and *italic text*. We can also link [with a direct url](https://google.com) *(i.e. to google)*
or via reference to [a later defined url][massivedynamic], if we so desire.
or via reference to [a later defined url][massivedynamic], i we so desire.
Paragraphs can be annotated with `id` and `class` attributes:
```markdown
Paragraphs can be annotated with ids and classes {.thisIsAClass, .anotherClass, #thisIsAnID}
```
results in
Paragraphs can be annotated with ids and classes {.thisIsAClass, .anotherClass, #thisIsAnID}
@ -73,14 +57,14 @@ Paragraphs can be annotated with ids and classes {.thisIsAClass, .anotherClass,
> Only two things are infinite,
> Only two things are infinite,
> the universe and human stupidity,
> the universe and human stupidity,
> i am not totally shure about the universe, though...
> i am not totally shure about the universe, though...
> – Albert Einstein
> - Albert Einstein
```
```
> Only two things are infinite,
> Only two things are infinite,
> the universe and human stupidity,
> the universe and human stupidity,
> i am not totally shure about the universe, though...
> i am not totally shure about the universe, though...
> – Albert Einstein
> - Albert Einstein
### Code blocks
### Code blocks
```markdown
```markdown
@ -126,30 +110,4 @@ Paragraphs can be annotated with ids and classes {.thisIsAClass, .anotherClass,
[massivedynamic]: https://massivedynamic.eu
[massivedynamic]: https://massivedynamic.eu
```
```
[massivedynamic]: https://massivedynamic.eu
[massivedynamic]: https://massivedynamic.eu
## Usage
Simply construct an new `parkdown\Parkdown` object and pass the Markdown source code to it's constructor. The parsed `DOMDocument` or it's `HTML` output can then be retrieved through the `::html()` and `::tree()` member functions.