Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Emphasis within quoted / indented text?

Solved by pamtbaau View solution

Started by Zuzana Fenclová 7 years ago · 2 replies · 872 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, 11 months ago
6 1200 11 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 964 1 year ago
Content & Markdown · by Jan L'Am, 2 years ago
4 844 2 years ago
Content & Markdown · by Leonardo, 2 years ago
3 766 2 years ago
Content & Markdown · by belthasar, 2 years ago
4 1180 2 years ago