Download the PHP package comfyphp/markdown without Composer
On this page you can find all versions of the php package comfyphp/markdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download comfyphp/markdown
More information about comfyphp/markdown
Files in comfyphp/markdown
Package markdown
Short Description Markdown extension for ComfyPHP
License MIT
Homepage https://github.com/comfyphp/markdown
Informations about the package markdown
ComfyPHP Markdown Extension
This is an extension for ComfyPHP framework to enable the function of using markdown as a page.
Before Using it
As this is an extension for ComfyPHP, All dependencies required in ComfyPHP and ComfyPHP itself is needed to use this extension.
Download / Install
To use this extension, you can install it with Composer.
Initialize
Since this extension is based on Parsedown & Parsedown Extra, you may pass the configurations which accepted by it.
Then pass the variables into ComfyPHP\Core()
:
Create a routing to the target file:
Or use File-Based Routing if you like:
Usage
After the initialization, you may create a markdown file in src/pages
folder (default), let's take src/pages/markdown/index.md
as the example:
Here we create a heading in the markdown file:
This will create the HTML below after process:
For more information, you may take a look here.
Meta Tags / Elements
In addition to converting markdown content to HTML, you can also include the <head>
sections at the beginning of the markdown file. ComfyPHP will read and convert them accordingly.
License
This project is MIT licensed, you can find the license file here.