我有以下代码,可在添加液体代码块后重置编号列表:
...
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...
问题在于以下内容呈现为:
有序列表被重置,这显然是一个问题。我看过许多详细介绍降价有序列表重置问题的文章,但没有一个讨论液体标签。我在这里找到了另一篇讨论该问题的帖子,无济于事。
这是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">'~> 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>
我希望能够在不破坏HTML元素并重新设置编号的情况下将液体标签放置在有序列表中<ol>
。有没有办法做到这一点?
对于那些有此问题的人,在下一个数字之前添加额外的信息对我有所帮助。
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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句