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

  1. doebeli
    Posted 2 years ago #


    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?


  2. Christian Wach
    Plugin Author

    Posted 2 years ago #

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

  3. doebeli
    Posted 2 years ago #



    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
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

    Thanks, works!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CommentPress Core
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic