gpt4 book ai didi

有序列表中的 Jekyll Kramdown 代码 - 数字重置

转载 作者:行者123 更新时间:2023-12-03 18:35:55 27 4
gpt4 key购买 nike

我有以下代码在添加液体代码块后重置编号列表:

...
6. Install the Ruby Google API client with `gem install google-api-client`, or if you prefer in a Gemfile:
{% highlight ruby lineanchors %}
source 'https://rubygems.org'
gem 'google-api-client', '~> 0.9.1'
{% endhighlight %}
(If you've never used [Bundler](http://bundler.io) before, you should start!)

7. Let's get a quick script set up to post a Google Calendar event to...

问题是以下呈现为:

fail

有序列表被重置,这显然是一个问题。我看过 many postsdetail the markdown ordered list reset problem但他们都没有讨论液体标签。我发现另一个帖子 here讨论这个问题无济于事。

这是 HTML 输出,以防万一。 <ol>标签显然被 <div> 破坏了由液体标签引擎生成的元素...我不知道如何嵌入 pre阻止 <ol>堵塞...
<ol>
...
<li>Install the Ruby Google API client with <code>gem install google-api-client</code>, or if you prefer in a Gemfile:</li>
</ol>
<div class="highlight"><pre><code class="language-ruby" data-lang="ruby"><a name="True-1"></a><span class="n">source</span> <span class="s1">'https://rubygems.org'</span>
<a name="True-2"></a><span class="n">gem</span> <span class="s1">'google-api-client'</span><span class="p">,</span> <span class="s1">'~&gt; 0.9.1'</span></code></pre></div>
<p>(If you’ve never used <a href="http://bundler.io">Bundler</a> before, you should start!)</p>
<ol>
<li>Let’s get a quick script set up to post a Google Calendar event to</li>
<li>Let’s get a quick script set up to post a Google Calendar event to</li>
</ol>

我希望能够将液体标签放在有序列表中,而不会破坏 <ol> HTML 元素并重置编号。有没有办法做到这一点?

最佳答案

对于那些有这个问题的人,在下一个数字前面添加额外的信息对我有帮助。

6. Install the Ruby Google API client with `gem install google-api-client`, or if you prefer in a Gemfile:
{% highlight ruby lineanchors %}
source 'https://rubygems.org'
gem 'google-api-client', '~> 0.9.1'
{% endhighlight %}
(If you've never used [Bundler](http://bundler.io) before, you should start!)

{:start="7"}
7. Let's get a quick

关于有序列表中的 Jekyll Kramdown 代码 - 数字重置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35858704/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com