---
title: 'Markdown and Twig for Layout'
url: 'https://getgrav.org/forum/themes-styling/markdown-and-twig-for-layout-t6047'
markdown: 'https://getgrav.org/forum/themes-styling/markdown-and-twig-for-layout-t6047.md'
date: '2026-06-21'
description: "Hello! I'm still very new to Grav and am trying to wrap my head around the use of markdown. I would like to give my users the ability to edit the text of a"
---

[Themes & Styling](https://getgrav.org/forum/themes-styling)

#  Markdown and Twig for Layout 

  Started by Piotr Adam Gulbis 9 years ago · 1 replies · 1722 views    

 [9 years ago](https://getgrav.org/forum/themes-styling/markdown-and-twig-for-layout-t6047#post-19404 "Permalink") 

Hello!

I'm still very new to Grav and am trying to wrap my head around the use of markdown.

I would like to give my users the ability to edit the text of a page but not change the layout or styles associated with a particular element.

At the moment I have just a main container in my twig layout and then I have inline html in my markdown with the classes and container elements.

For example I have a flex container and flex items which are positioned correctly using scss.

Of course this only solves one problem. Users can now edit all the text but can also change the layout and therefore could potentially break the layout.

What is the correct way of getting this done?

 [9 years ago](https://getgrav.org/forum/themes-styling/markdown-and-twig-for-layout-t6047#post-19424 "Permalink") 

One of the great things about markdown is it doesn't provide all the HTML tags that are potentially dangerous in the hands of users. It just provides enough to create content, and the layout can be controlled via CSS and not easily broken.

This plugin might help you though: <https://github.com/bleutzinn/grav-plugin-editable-simplemde>

[Log in](https://getgrav.org/login?return=%2Fforum%2Fthemes-styling%2Fmarkdown-and-twig-for-layout-t6047) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Modular Page Background Image Display](https://getgrav.org/forum/themes-styling/modular-page-background-image-display-t9486)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by TomW, 2 weeks ago |  | 2 | 200 | [2 days ago](https://getgrav.org/forum/themes-styling/modular-page-background-image-display-t9486 "by TomW") |
| [Inheriting a Theme does not quite work correctly](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by themetman, 3 days ago |  | 0 | 48 | [3 days ago](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501 "by themetman") |
| [\[quark\] mobile menu as the modular page menu](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by Bruno, 4 years ago |  | 4 | 1320 | [3 days ago](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132 "by AH") |
| [Grav2 with Quark2 – All pages in the hamburger-menu of a one-pager](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by AH, 2 weeks ago |  | 0 | 173 | [2 weeks ago](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485 "by AH") |
| [Is it a way to get the "content - summary" in a twig template ?](https://getgrav.org/forum/themes-styling/is-it-a-way-to-get-the-content-summary-in-a-twig-template-t9431)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by FrViPofm, 2 months ago |  | 4 | 667 | [1 month ago](https://getgrav.org/forum/themes-styling/is-it-a-way-to-get-the-content-summary-in-a-twig-template-t9431 "by Paul Hibbitts") |
