Coder Social home page Coder Social logo

Nested Lists not properly generated in output Markdown content when list Item starts with bold, italics, codeph... about org.lwdita HOT 3 CLOSED

jelovirt avatar jelovirt commented on June 9, 2024
Nested Lists not properly generated in output Markdown content when list Item starts with bold, italics, codeph...

from org.lwdita.

Comments (3)

ritti avatar ritti commented on June 9, 2024

Annother issues with Ordered Lists that start with bold,...:

In DITA-OT 3.3 ordered list items that start with bold, italics, codeph tag are intended with 3 spaces instead of 2 while transformed to markdown. When a paragraph is included in this list item it is interpreted as codeblock:

DITA xml source:

<ol>
    <li>List item 1 of Ordered List</li>
    <li>
        <b>List item 2 of Ordered List</b>
        <p>New Paragraph of List item 2 of Ordered List.</p>
    </li>
    <li>List item 3 of Ordered List</li>
</ol>

Markdown result when transformed with markdown (raw):
Between the "2." and the "**" are 3 spaces instead of 2.

1.  List item 1 of Ordered List
2.   **List item 2 of Ordered List** 

    New Paragraph of List item 2 of Ordered List.

3.  List item 3 of Ordered List

Preview of transformed Markdown result:

order_list

Hint: Preview was tested for commonmark on https://babelmark.github.io

from org.lwdita.

ritti avatar ritti commented on June 9, 2024

Finally a List item that starts directly with a codeblock is also not properly transformed:

DITA xml source:

<ol>
    <li>List item 1 of Ordered List</li>
    <li>
        <codeblock>List item 2 is a codeblock</codeblock>
    </li>
    <li>List item 3 of Ordered List</li>
</ol>

Markdown result when transformed with markdown (raw):
A linefeed is missing.
Not list item 2 is interpreted as codeblock, but item 3 that is incorrect:.

codeblock_in_list_raw

Preview of transformed Markdown result:

codeblock_in_list

Hint: Preview was tested for commonmark on https://babelmark.github.io

from org.lwdita.

ritti avatar ritti commented on June 9, 2024

Attached is the xml source file and the (expected) markdown result for all these findings.
Test.zip

from org.lwdita.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.