Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can’t use Markdown-style *emphasis* inside an HTML block.
Span-level HTML tags — e.g. <span>, <cite>, or <del> — can be used anywhere in a Markdown paragraph, list item, or header. If you want, you can even use HTML tags instead of Markdown formatting; e.g. if you’d prefer to use HTML <a> or <img> tags instead of Markdown’s link or image syntax, go right ahead.
Unlike block-level HTML tags, Markdown syntax is processed within span-level tags.
I wanted to make sure the “content 2” length does not interfere “gallery++” area - hence my attempt to fit the “gallery++” under “content 1” using <div>
Reminder: I’m very new to self-hosting/programming
tag correctly? - I think you commented on that topic as well
Although the post you’re referring to hasn’t got to do with processing Markdown inside <div>s, it does remind me of the existing option of using Markdown Extra…
Set pages:markdown:extra: true in /user/config/system.yaml
Good questions. For me from the beginning this sounds like it should be solved in the theme with a separate template. Adding HTML to the content should be the last resort
Yes, other layouts will follow the similar compartments.
The contents 1/2 will differ based on the page.
Now, after these searches and reading what you guys said, I came to the conculusion that my original approach isn’t the ideal method.
I will spend some time learning twig and try to create/modify a template and see where it gets me.
Chances are I’ll have more questions.
Thank you for helping me to understand
I won’t, but did you even try to replace all <divs>s and css display: block?
Tried, didn’t work
“Didn’t work” is meaningless information…
Again, how did you try it? Please show the relevant snippet of markdown and the page settings in user/config/system.yaml.
Reminder: I’m very new to self-hosting/programming
If you are not satisfied what Grav and one of the themes provide you out of the box, you will have a hard time if you don’t have minimal knowledge on Markdown, HTML, css/scss, Twig…
I did not; I didn’t know I was supposed replace all of them.
However,
This was a good point as it helped me to see my problem.
Whilst trying to take a screenshot, I learned that the problem was with indentation.
Removing indentation parsed the gallery++ within <div markdown="1">
This was a good point as it helped me to see my problem.
That was exactly the problem I was expecting considering the Markdown snippet you shared earlier. Indentation in Markdown has a meaning…
Without sharing code snippets, we cannot see what you have been doing and hence cannot see what is going wrong.
A side question, I can’t seem to shift+tab indent on Grav - is there a shortcut to this?
Please do not ask extra unrelated questions in the same topic. The topic is about Gallery++ and that has been answered.
Having said that, tab and shift+tab work as expected using the Markdown editor in the Markdown field in the Content tab in Grav Admin.