3.4.3 自定义InlineHilite扩展成功

This commit is contained in:
跨越晨昏 2024-11-22 19:37:10 +08:00
parent bbc729f1c3
commit dd9f7d2efb
2 changed files with 3 additions and 1 deletions

View File

@ -295,6 +295,8 @@ class InlineCode:
variable = ''.join(variables) variable = ''.join(variables)
if variable in self.variable: if variable in self.variable:
return self.variable[variable] return self.variable[variable]
else:
return variable
case _: case _:
return f'<code>{source}</code>' return f'<code>{source}</code>'

View File

@ -207,7 +207,7 @@
<p><span class="keys"><kbd class="key-control">Ctrl</kbd><span>+</span><kbd class="key-alt">Alt</kbd><span>+</span><kbd class="key-delete">Del</kbd></span></p> <p><span class="keys"><kbd class="key-control">Ctrl</kbd><span>+</span><kbd class="key-alt">Alt</kbd><span>+</span><kbd class="key-delete">Del</kbd></span></p>
<p><kbd>Enter</kbd></p> <p><kbd>Enter</kbd></p>
<h3 id="4.1.4">4.1.4 突出</h3> <h3 id="4.1.4">4.1.4 突出</h3>
<p>`{突出内容}`</p> <p>突出内容</p>
<h2 id="4.2">4.2 多行</h2> <h2 id="4.2">4.2 多行</h2>
<h3 id="4.2.1">4.2.1 YAML</h3> <h3 id="4.2.1">4.2.1 YAML</h3>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">2</span> <div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">2</span>