Force rendering markdown in codeblocks

Hello !
It’s my first time here, and I don’t know jekyll a lot.

For some custom writing, I want to use codeblocks to write somethings as admonition. I create the CSS, the js to add html… But, I found one problem : jekyll doesn’t really run in codeblocks.
How can I force things to parse my markdown ? (latex, strong, link…)

For information : each code blocks start with ad- so it creates custom language.

(I don’t want to change the markdown source file).

Can you add a link to admonition? Never heard of it

and a sample of code you want to write and then render?

There are two types of code blocks

```html
<p>Hello</p>
```
{% highlight html %}
<p>Hello</p>
{% endhighlight %}

Hello !
I use the three backtick :

title: somethings
contents

I finally drop to change to another things, because my using of Javascript break to much things ^^".
I ending with using

title: content
contents

will ending to form some “callout” things.

Admonition is inspired by this : Admonitions - Material for MkDocs

Try adding 4 spaces if you want to show backticks in the forum

Code

    ```md
    # Heading
    ```

Renders

```md
# Heading
```

Okay so admonition syntax I see is

!!! note
    You should note that the title will be automatically capitalized.
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>You should note that the title will be automatically capitalized.</p>
</div>

But indenting by 4 spaces in Jekyll will turn it into code snippet

You could try write your content in .html files instead of .md to avoid that processing.

Whether .md or .html you would still have to use pre tag to keep the white space

---
---

## Heading

<pre>
!!! note
    My content
</pre>

Or… you can write your content in frontmatter where Jekyll won’t process it as Markdown

---
title: My title

my_content: |
  My content goes here

  Some notes

  !!! note
     My note 

my_field: 123
---

{{ page.my_content }}

Or maybe like this. In your layout.

<pre>
{{ page.my_content }}
</pre>

Note that any markdown like ## **my heading** will be rendered as plain text. So you can add special characters and indentation with no issue.

You could apply a filter to apply markdown but then you’re back to where you started and defeats using frontmatter. But, for interest.

---
---
{{ page.my_content | markdownify }}

Also note that page.content is already a Jekyll thing, so I used an alternate name.

Maybe then you can have your JS look through all pre tags or those with a certain class and then add your text formatting to those.

Oh and as alternative to Jekyll, Docsify is great for making a docs site and supports notes and warnings like the bottom of this page

https://michaelcurrin.github.io/docsify-js-template/#/

Using

?> My tip

!> My warning

Also MkDocs I find is nice to work with if you want to use that maybe for the plugin you need

My template

https://michaelcurrin.github.io/mkdocs-quickstart/