Skip to content

Asciidoctorj does not recognise 4 tildes (~) as open block delimiter #1319

@alexzandros

Description

@alexzandros

The minimal reproducible example is (sorry, I'm working in Scala)

val asciidocString = """
== Chapter1
~~~~
This should be an open block
~~~~
== Chapter2
"""
  println(asciidoctor.convert(asciidocString, Options.builder().build()))

Expected result:

<div class="sect1">
  <h2 id="_chapter1">Chapter1</h2>
  <div class="sectionbody">
    <div class="openblock">
      <div class="content">
        <div class="paragraph">
          <p>This should be an open block</p>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="sect1">
  <h2 id="_chapter2">Chapter2</h2>
<div class="sectionbody">

</div>
</div>

What I get:

<div class="sect1">
  <h2 id="_chapter1">Chapter1</h2>
  <div class="sectionbody">
    <div class="paragraph">
      <p><sub>~</sub>~
        This should be an open block
        <sub>~</sub>~
         == Chapter2</p>
      </div>
    </div>
</div>

Asciidoctor already supports this https://github.com/asciidoctor/asciidoctor/blob/main/CHANGELOG.adoc

Sorry if I'm rushing you too much. I know is a pretty recent change upstream. 😊

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