Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Emphasis within quoted / indented text?

Solved by pamtbaau View solution

Started by Zuzana Fenclová 7 years ago · 2 replies · 573 views
7 years ago

Hi guys,

I need to have a piece of code emphasised (<b>) within a longer section of indented code (```). Is there a way of doing that in Grav?

Markdown marks worked in MediaWiki, now Grav interprets my attempts of emphasising the code (*) as asterisks. The same happens to curly brackets when I use grav-plugin-markdown-color* withing the indented part.

Thanks for your insight, Sue

7 years ago Solution

Hi @sue, is the following code block something you are looking for?
<pre><code>This is <b>bold</b> inside a code block</code></pre>

If so, you can create it by mixing regular HTML inside your markdown:

TXT
<pre><code>This is <b>bold</b> inside a code block</code></pre>

Hope this helps...

7 years ago

Yeah, that's it. Your example was crystal clear and really helped me to grasp the idea of using markup when markdown is not sufficient.

Thanks a million!

Sue

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 94 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 184 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 146 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 60 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 254 1 year ago