Compare commits

...

3 Commits

Author SHA1 Message Date
Michael Ochmann 0cc7b0dd45 added changelog for v1.2.0 3 years ago
Michael Ochmann c7dcd85cce cleaned up index.php 3 years ago
Michael Ochmann efa8516a67 fixed typos in readme 3 years ago
  1. 12
      CHANGELOG.md
  2. 8
      README.md
  3. 13
      index.php

@ -1,4 +1,16 @@
# Changelog # Changelog
## Version 1.2.0
The *"annotation release"*
### Added
* paragraph annotations *(now can set HTML ids and classes with `{.someClass, #someId}` syntax)*
* unit tests for annotation
* unit for headings *(`h1` to `h5`)*
### Removed
* Testing code in `index.php`
## Version 1.1.2 ## Version 1.1.2
No major changes introduced, getting ready for release No major changes introduced, getting ready for release

@ -33,11 +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], i we so desire. or via reference to [a later defined url][massivedynamic], if 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], i we so desire. or via reference to [a later defined url][massivedynamic], if we so desire.
Paragraphs can be annotated with `id` and `class` attributes: Paragraphs can be annotated with `id` and `class` attributes:
@ -73,14 +73,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

@ -4,15 +4,24 @@ require __DIR__."/vendor/autoload.php";
$source = file_get_contents(dirname(__FILE__)."/README.md"); $source = file_get_contents(dirname(__FILE__)."/README.md");
//$source = file_get_contents(dirname(__FILE__)."/tests/paragraph.md");
//$source = file_get_contents(dirname(__FILE__)."/tests/list.md");
echo " echo "
<style> <style>
body { body {
padding: 4rem;
margin: 0;
font-family: sans-serif; font-family: sans-serif;
} }
img {
max-width: 100%;
}
code {
word-break: break-word;
white-space: break-spaces;
}
table { table {
width: 100%; width: 100%;
} }

Loading…
Cancel
Save