hi there,
as a beginner i have one question in my mind: how is it possible to add classes inside the user/pages?
with md-syntax there is no possibility to add classes to tags.
thanks in advance for answering.
hi there,
as a beginner i have one question in my mind: how is it possible to add classes inside the user/pages?
with md-syntax there is no possibility to add classes to tags.
thanks in advance for answering.
With markdown - no it’s not possible BUT
If you have
markdown_extra: true
enabled in your system.yaml, you can use something like that
<div class="example" markdown="1">
Wow, still i can use markdown inside that div
</div>
And this will work
Simply, you can use html inside your user pages !
ok thanks for fast response
Actually I’m wrong In grav if you have markdown_extra enabled, you can do something like that:
 {.pull-left}
Above example will add class “pull-left” to image. I tested it also with other elements and it also works, so you’re good to go
Couple of notes.
1 - markdown extra is enabled a bit differently now
2 - you can assign classes to some markdown with markdown extra https://michelf.ca/projects/php-markdown/extra/#spe-attr
ok. yeah finally i found adding classes in the documentation and it works perfect.
GRAV IS AWESOME!