-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from jonnyeom/feature/small-cleanup
Feature/small cleanup
- Loading branch information
Showing
9 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{.has-text-centered} | ||
# Medical | ||
{.has-text-centered} | ||
> This page is for medical + informational purposes only. | ||
> | ||
[TOC] | ||
|
||
### No Blood | ||
I, Jonathan Eom, direct that NO TRANSFUSIONS of whole blood, red cells, white cells, platelets, or plasma be | ||
given me under any circumstances, even if health-care providers believe that such are necessary to preserve my life. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Service; | ||
|
||
use League\CommonMark\Environment\Environment; | ||
use League\CommonMark\Extension\Attributes\AttributesExtension; | ||
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension; | ||
use League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkExtension; | ||
use League\CommonMark\Extension\TableOfContents\TableOfContentsExtension; | ||
|
||
final class MarkdownConverter extends \League\CommonMark\MarkdownConverter | ||
{ | ||
public function __construct() | ||
{ | ||
$environment = new Environment([ | ||
'table_of_contents' => [ | ||
'html_class' => 'table-of-contents', | ||
'position' => 'placeholder', | ||
'style' => 'bullet', | ||
'min_heading_level' => 2, | ||
'max_heading_level' => 6, | ||
'normalize' => 'relative', | ||
'placeholder' => '[TOC]', | ||
], | ||
'heading_permalink' => ['insert' => 'after'], | ||
]); | ||
|
||
$environment->addExtension(new CommonMarkCoreExtension()); | ||
$environment->addExtension(new HeadingPermalinkExtension()); | ||
$environment->addExtension(new TableOfContentsExtension()); | ||
$environment->addExtension(new AttributesExtension()); | ||
|
||
parent::__construct($environment); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends 'base.html.twig' %} | ||
|
||
{% block body %} | ||
<section class="section pt-0"> | ||
<div class="container is-max-desktop"> | ||
<div class="content"> | ||
<div class=markdown"> | ||
{{ content|raw }} | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters