Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default template is not processing markdown #9

Closed
coop2540 opened this issue Aug 9, 2020 · 2 comments
Closed

Default template is not processing markdown #9

coop2540 opened this issue Aug 9, 2020 · 2 comments

Comments

@coop2540
Copy link

coop2540 commented Aug 9, 2020

Hi,
If I use the default template with this code:

{% extends 'partials/base.html.twig' %}

{% block content %}
<article class="max-w-xl mx-auto">
    <header>
        <h1>{{ page.header.title }}</h1>
    </header>

            {{ page.content }}
    </article>
{% endblock %}

Markdown is not processing.
If I put {{page.content}} inside <section class=prose> like in the post template then the markdown works.

I'm doing something wrong ? or is a not defined css for default.html.twig and is for this that markdown is not processed?

Thanks!

@MarcelKr
Copy link
Owner

Hey Jordan, thanks for reporting the issue. Indeed, the default template was missing the prose class. I fixed it via e0f7944.

This fix is part of the 1.4.2 release which should soon be available via GPM.

@coop2540
Copy link
Author

Thank you !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants