Create Markdown Pages

Create Markdwon page is very easy, just put your .md files in /entries.

This is an example of /entries/foo/

layout: html.twig
# Sakura

Sakura page

Do not miss layout config because we have to wrap markdown data with a HTML template.

Open http://localhost/{VASEMAN_PATH}/foo/sakura.html, you will see:

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>My Site</title>

    <p>Sakura page</p>

Use Markdown In Twig and Blade Page

We can also render markdown in twig page, use {% markdown %} tag:

<div class="article-content">
    {% markdown %}

# Markdown Page

Test Data ![img](foo.jpg)

    {% endmarkdown %}

In Blade

<div class="article-content">

# Markdown Page

Test Data ![img](foo.jpg)


Help improve our documentation