User Tools

Site Tools


processwire:markdown

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
processwire:markdown [2016/02/08 12:28] leoprocesswire:markdown [2016/02/08 15:36] (current) leo
Line 8: Line 8:
     - basic : textarea     - basic : textarea
     - details : html entity encoders (htmlspecialchars), inputfield type : AceEditor, content type : Markup/HTML with image management     - details : html entity encoders (htmlspecialchars), inputfield type : AceEditor, content type : Markup/HTML with image management
 +
 +==front==
 +
 +on dirait qu'il y a par défaut un parser markdown : TextformatterMarkdownExtra
 +
 +info ici : https://github.com/ryancramerdesign/ProcessWire/tree/master/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra
 +
 +Et là : https://github.com/erusev/parsedown-extra/wiki
 +
 +<code>
 +<?php
 +// includes
 +$markdown_module_path = "../../wire/modules/Textformatter/TextformatterMarkdownExtra/";
 +require $markdown_module_path."parsedown/Parsedown.php";
 +require $markdown_module_path."parsedown-extra/ParsedownExtra.php";
 +// declaring parser
 +$Extra = new ParsedownExtra();
 +//use
 +$page->of(false);
 +echo $Extra->text($page->Markdown); ?>
 +</code>
 +
processwire/markdown.1454930880.txt.gz · Last modified: 2016/02/08 12:28 by leo