WordPress.org

Ready to get started?Download WordPress

Forums

CommentPress Core
[resolved] Two ol together are processed as one paragraph (5 posts)

  1. doebeli
    Member
    Posted 9 months ago #

    Hi,

    When I have several unordered lists, each list (not each item) gets it's own paragraph, permalink and ist commentable. Everything Fine.

    But with ordered lists, two ol's following each other result in only one comment section. Am I doing anything wrong?

    http://wordpress.org/plugins/commentpress-core/

  2. Christian Wach
    Member
    Plugin Author

    Posted 9 months ago #

    I can't seem to reproduce this. Do you have an example URL?

  3. doebeli
    Member
    Posted 9 months ago #

    Yes:

    http://buch.wikiway.ch/kapitel-09/

    First, you see a bunch of ul's. Then you'll see a bunch of ol's with <ol start="3"> etc. to simulate ONE ordered list.

  4. Christian Wach
    Member
    Plugin Author

    Posted 9 months ago #

    Okay, I see. The problem is that the regex in the CommentPress parser fails to recognise the ol when there is an attribute - in your case the 'start' attribute. This is one of the weaknesses of the parser and one of main the reasons I want to offer a DOM parser as an alternative in the future.

    I have added support for this in my GitHub repo. You can download a zip of the plugin from there and the enhancement will be included in the next release, so you don't need to worry about upgrading when I release the next version.

    Cheers, Christian

  5. doebeli
    Member
    Posted 9 months ago #

    Thanks, works!

Reply

You must log in to post.

About this Plugin

About this Topic