I’m a new user and still learning. I’m trying to use a definition list, i.e. <dl><dt>Apple</dt><dd>Pomaceous fruit…</dd></dl>
Embedding this as raw html does work.
According to PHP Markdown Extra , there is a Markdown syntax to achieve this, but this doesn’t work for me:
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
Orange
: The fruit of an evergreen tree of the genus Citrus.
This simply renders as
<p>Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.</p>
<p>Orange
: The fruit of an evergreen tree of the genus Citrus.</p>
I have enabled Markdown Extra in system.yaml:
pages:
markdown:
extra: true
Am I doing something wrong, or are definition lists simply not implemented in Grav? It’s not a terrible problem to write them as embedded html, but it’s a bit tedious. The Markdown syntax would be simpler.
i just created a new page named test and write this
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
: An American computer company.
Orange
: The fruit of an evergreen tree of the genus Citrus.
and save page
and went to configurations and clicked yes for markdown extra
when i reload test page i see this at source
<dl>
<dt>Apple</dt>
<dd>Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.</dd>
<dd>An American computer company.</dd>
<dt>Orange</dt>
<dd>The fruit of an evergreen tree of the genus Citrus.</dd>
</dl>
Thanks for checking that. I’ll have another look, I currently use the config files not the admin plugin to set enable markdown extra, maybe this is not working for some reason.
Indeed it works for me now. I had overlooked a second place in system.yaml setting markdown: extra: false, which apparently took precedence. Thanks again for sending me in the right direction!