Grav: codeblock (triple backticks) in nested items is commented out

Created on 13 Oct 2016  路  9Comments  路  Source: getgrav/grav

say for example markdown code

markdown ```php <? } ?> ```

Renders in an item as:

<pre><code class="language-php">&lt;? } ?&gt;</code></pre>

but when that item is included in a blog list it renders as:

<pre><code class="language-php"><!--? } ?--></code></pre>

and it doesn't matter if i use short or full php tags, (the post was actually about short and full tags)

bug

All 9 comments

Are you indenting and using triple back ticks? Tab indention will signify a code block by itself, so the ``` is redundant.

oh no i'm not , im just doing it here because double markdown on github used to be trouble without indentation

So works fine in a single blog post page, but it's not right when it's in the blog posts list (truncated)?

Replicated. Not sure why, but if you add

===

to indicate where to cut the intro, the problem goes away.

You are right sir, I will use that until the bug is fixed :D

Marked as bug as it's an issue in encoding the code block when truncating

Closing to due to inactivity

so you close a valid and confirmed bug, just because there is no activity ? what kind of process is this ? ignore it and it will go away, code doesn't work like that

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcastel picture marcastel  路  4Comments

i5o picture i5o  路  3Comments

jimblue picture jimblue  路  4Comments

carstenwm picture carstenwm  路  3Comments

tdulieu picture tdulieu  路  3Comments