• Resolved wwwwp

    (@wwwwp)


    Hello,
    Thank you for your plugin. The Markdown plugin I used before is no longer available, so yours has been a great help.

    When there is an HTML list in a post, under certain conditions, everything after the first list item disappears.

    aaa
    <ul>
    <li>bbb
    <li>ccc
    </ul>
    ddd

    eee <ul>
    <li>fff
    <li>ggg
    </ul>
    hhh

    In the example above, the content after “fff” disappears.

    aaa
    <ul>
    <li>bbb</li>
    <li>ccc</li>
    </ul>
    ddd

    eee <ul>
    <li>fff</li>
    <li>ggg</li>
    </ul>
    hhh

    In the example above, the content shows, but </ul> tag comes after <p> tag, like below,

    <div class="entry-content alignfull wp-block-post-content has-global-padding is-layout-constrained wp-block-post-content-is-layout-constrained"><p>aaa</p>
    <ul>
    <li>bb</li>
    <li>ccc</li>
    </ul>
    <p>ddd</p>
    <p>eee<ul></p>
    <li>fff</li>
    <li>ggg</li>
    <p></ul>
    hhh</p></div>

    When I disable this plugin, everything displays normally in both case.
    It might be a rare case, but I’d appreciate a fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pierre-Henri Lavigne

    (@peter202202)

    Hello again @wwwwp

    Just to confirm are you using markdown or a mix with HTML ?
    I patched a similar issue recently due to wrong breaklines.

    Could you try adding a breakine to split your list please ? Like this :

    aaa

    - bbb
    - ccc

    ddd

    eee

    - fff
    - ggg

    hhh

    And show me the original markdown snippet code without HTML you are using please. 🙇‍♂️
    The code snippet you pasted do not like markdown code.

    From the page:

    /wp-admin/options-general.php?page=markup-markdown-admin

    there should some text with information you can copy paste about your blog settings. Would it be possible for you to share it as well when you can ? The information displayed at the bottom this page could help me understand your settings so I can try to reproduce the bug on my side.

    Thank you for your understanding

    Thread Starter wwwwp

    (@wwwwp)

    Hello, thank you for your reply!

    The issue occurs in posts where both HTML and Markdown are mixed. (I usually ask contributors to write posts using Markdown only, but I’m not sure how HTML got mixed in some cases.)

    It seems to work when a “ul” tag appears at the beginning of a line. However, if a “ul” comes right after some text without a blank line, the content after that may not render correctly.
    The same content was probably rendered correctly with the previous plugin.

    Below is the debug information from a test site I set up. The same issue occurred in this environment as well. The Markdown example you provided displays correctly. The theme in use is Twenty Twenty-Five.

    {
    "settings": [
    {
    "name": "MMD_USE_LIGHTBOX",
    "val": "0"
    },
    {
    "name": "MMD_USE_IMAGESLOADED",
    "val": "0"
    },
    {
    "name": "MMD_USE_MASONRY",
    "val": "0"
    },
    {
    "name": "MMD_USE_BLOCKSTYLES",
    "val": "0"
    },
    {
    "name": "MMD_USE_HEADINGS",
    "val": "\"1\", \"2\", \"3\", \"4\", \"5\", \"6\""
    },
    {
    "name": "MMD_KEEP_SPACES",
    "val": "0"
    },
    {
    "name": "MMD_AUTOPLUGS",
    "val": "\"DisableEmojis\", \"FrontendAdmin\""
    }
    ],
    "plugins": [
    {
    "name": "Markup Markdown",
    "url": "",
    "ver": "3.18.2",
    "desc": "Replaces the Gutenberg Block Editor in favor of pure markdown based markups"
    }
    ]
    }
    Plugin Author Pierre-Henri Lavigne

    (@peter202202)

    Thank you for the information @wwwwp, I could reproduce the bug 👍
    I added a patch in the latest release 3.19.0 to format this kind of snippets with a few extra breaklines so WordPress and Markdown filters can be applied properly. That should work for your case.

    Please note such markups should be fixed by hand by default. Markdown is using a XML-based parser and even if an error is not triggered, the embedded HTML if present should be valid. 🙇‍♂️

    If you don’t mind I’m gonna mark this discussion as solved, feel free top open a new one if need be. Have a wonderful markdown journey, best regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘HTML List Not Displaying Properly’ is closed to new replies.