For example if i’ve use markdown for language highlight the text only lines don’t get included inside a tag for highlight.
for example:
{%- highlight md -%}
## title
here have some random text
{%- endhighlight -%}
render this:
<figure class="highlight">
<pre>
<code class="language-md" data-lang="md">
<span class="gu">## title</span>
here have some random text
</code>
</pre>
</figure>
Or if I used accented word with config language, rogue exclude this words
{%- highlight config -%}
tílde
no tilde
{%- endhighlight -%}
<figure class="highlight">
<pre>
<code class="language-config" data-lang="config">
<span class="n">t</span>
í
<span class="n">lde</span>
<span class="n">no</span>
<span class="n">tilde</span>
</code>
</pre>
</figure>
is this normal behavior since the devs use english for most extra text on code blocks? my markdown and kramdown options on _config.yml
markdown: kramdown
kramdown:
syntax_highlighter: rouge
syntax_highlighter_opts:
span:
line_numbers: false
block:
line_numbers: true