Why is ```console highlighting shell keywords? #5682
-
From my read of Example: ```console
# After creating your foo in bar, check out baz
$ qux checkout baz
Checking out baz...
Done!
``` is getting processed as <div class="language-console highlight">
<pre>
<span></span>
<code>
<span class="gp"># </span>
After
<span class="w"> </span>
creating
<span class="w"> </span>
your
<span class="w"> </span>
foo
<span class="w"> </span>
<span class="k">in</span> <--- oh no!
<span class="w"> </span>
bar,
<span class="w"> </span>
check
<span class="w"> </span>
out
<span class="w"> </span>
baz I can't find an exact example, but it doesn't appear this should be the behavior (hashicorp docs source, rendered). I would generally expect there to be no further lexing after a Is this the fault of Here's my config: # ...
markdown_extensions:
- toc:
permalink: "#"
permalink_title: "Link to this section"
- abbr
- attr_list
- admonition
- def_list
- footnotes
- smarty
- pymdownx.details
- pymdownx.highlight:
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets:
auto_append:
- docs/glossary.inc.md
- pymdownx.tabbed:
alternate_style: true
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think generally this would be a question for Pygments, not Material. |
Beta Was this translation helpful? Give feedback.
I think generally this would be a question for Pygments, not Material.