Skip to content

Commit

Permalink
adds ParsdownPlus to support custom tags #136
Browse files Browse the repository at this point in the history
- YouTube video embedding tag
- Vimeo video embedding tag
- Custom text colors tag
- Forced RTL/LTR tags
- Mono space font tag
- Collapsible section tag
  • Loading branch information
leomoon committed Jun 30, 2024
1 parent 4a27bd2 commit 10d9b8d
Show file tree
Hide file tree
Showing 6 changed files with 1,076 additions and 1 deletion.
1 change: 1 addition & 0 deletions bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
require_once(BASE."libraries/parsedown-extra-0.8.1/ParsedownExtra.php");
require_once(BASE."libraries/parsedown-extended-1.1.2-modified/ParsedownExtended.php");
require_once(BASE."libraries/parsedown-filter-0.0.1/ParsedownFilter.php");
require_once(BASE."libraries/parsedown-plus-0.0.5/ParsedownPlus.php");

// if behind https reverse proxy, set HTTPS property correctly
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO']=='https'){$_SERVER['HTTPS']='on';}
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
// initialize document
$DOC=new Document(DOC);
// initialize markdown parser
$PARSER=new ParsedownFilter([
$PARSER=new ParsedownPlus([
'typographer' => true,
'toc' => true,
'sup' => true,
Expand Down
Loading

0 comments on commit 10d9b8d

Please sign in to comment.