Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbered Attribute in Code listing causing invalid HTML #41

Open
christopappas opened this issue Aug 11, 2014 · 1 comment
Open

Numbered Attribute in Code listing causing invalid HTML #41

christopappas opened this issue Aug 11, 2014 · 1 comment

Comments

@christopappas
Copy link
Contributor

Hello,

The 'numbered' attribute in code listings is causing trouble.

The asciidoc markup:

[[vagrantfile_minimal]]
.Minimal configuration for Vagrant

====
[source,ruby,numbered]
----
Vagrant.configure(2) do |config|
  config.vm.box = "data-science-toolbox/data-science-at-the-command-line"
end
----
====

The (invalid) htmlbook markup:

<pre data-type="programlisting" data-code-language="ruby"><table class="pyhltable"><tr><td class="linenos"><div class="linenodiv">1
2
3</div></td><td class="code"><span class="tok-no">Vagrant</span><span class="tok-o">.</span><span class="tok-n">configure</span><span class="tok-p">(</span><span class="tok-mi">2</span><span class="tok-p">)</span> <span class="tok-k">do</span> <span class="tok-o">|</span><span class="tok-n">config</span><span class="tok-o">|</span>
  <span class="tok-n">config</span><span class="tok-o">.</span><span class="tok-n">vm</span><span class="tok-o">.</span><span class="tok-n">box</span> <span class="tok-o">=</span> <span class="tok-s2">&quot;data-science-toolbox/data-science-at-the-command-line&quot;</span>
<span class="tok-k">end</span>
</td></tr></table></pre>
</div>

-Chris

@jeroenjanssens
Copy link

I'm having the same issue. Is there a way to add line numbers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants