Skip to content

Theme doesn't work with Asciidoc (renders raw HTML) #8

@msavy

Description

@msavy

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions