-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
https://msavy.gitbooks.io/test/content/test.html
Reproducer (e.g. foo.adoc):
{% method %}
== Foobar
{% sample lang="Shell" %}
```shell
curl http://www.example.org/foo/bar
curl http://www.example.org/foo/baz
\```
{% endmethod %}
Results in HTML being visible on the rendered page (i.e. as plaintext).
Output
<div class="api-method"><div class="api-method-definition"><p>== Foobar</p> </div><div class="api-method-code"><div class="api-method-sample" data-lang="Shell" data-name="SHELL"><pre><code class="lang-shell">curl http://www.example.org/foo/bar
curl http://www.example.org/foo/baz </code></pre> </div></div></div>
It also seems to be attempting to apply the markdown renderer to the {% method %} section even though it's an asciidoc file. You can half hack it by doing something in markdown, using the asciidoc passthrough syntax (but the layouts are still badly broken once you start adding more content):
++++
{% method %}
== Foobar
{% sample lang="Shell" %}
```shell
curl http://www.example.org/foo/bar
curl http://www.example.org/foo/baz
\```
{% endmethod %}
++++
Metadata
Metadata
Assignees
Labels
No labels