markup icon indicating copy to clipboard operation
markup copied to clipboard

weird bullet list spacing

Open stevenvachon opened this issue 11 years ago • 3 comments

Checking out the weird spacing in these two separate bullet lists:

  • handlers.link is fired with the result of each discovered link (broken or not) within the current queue item.
  • handlers.item is fired after a queue item's last result, on zero results, or if the HTML could not be retreived.
  • handlers.end is fired when the end of the queue has been reached.
  • .dequeue(id) removes an item from the queue. Returns true on success or an Error on failure.
  • .enqueue(htmlUrl, customData) adds an item to the queue. Items are auto-dequeued when their requests are complete. Returns a queue ID on success or an Error on failure.
    • customData is optional data that is stored in the queue item.
  • .length() returns the number of items in the queue.
  • .numActiveItems() returns the number of active HTML URL sessions (series of link requests).
  • .numActiveLinks() returns the number of active link requests.
  • .pause() will pause the queue, but will not pause any active requests.
  • .resume() will resume the queue.

It renders like ~~five~~ four separate lists when it should only render as two. Appears to be caused by <p> tags.

Markdown:

* `handlers.link` is fired with the result of each discovered link (broken or not) within the current queue item.
* `handlers.item` is fired after a queue item's last result, on zero results, or if the HTML could not be retreived.
* `handlers.end` is fired when the end of the queue has been reached.

* `.dequeue(id)` removes an item from the queue. Returns `true` on success or an `Error` on failure.
* `.enqueue(htmlUrl, customData)` adds an item to the queue. Items are auto-dequeued when their requests are complete. Returns a queue ID on success or an `Error` on failure.
  * `customData` is optional data that is stored in the queue item.
* `.length()` returns the number of items in the queue.
* `.numActiveItems()` returns the number of active HTML URL sessions (series of link requests).
* `.numActiveLinks()` returns the number of active link requests.
* `.pause()` will pause the queue, but will not pause any active requests.
* `.resume()` will resume the queue.

stevenvachon avatar Jun 10 '15 00:06 stevenvachon

Same issue as #504? (though with a better explanation and title :smile: )

pchaigno avatar Jun 10 '15 05:06 pchaigno

Appears similar, though that one appears to have been caused by having a nested item where as this one not only suffers from the same, but also more.

stevenvachon avatar Jun 10 '15 13:06 stevenvachon

👋 Sorry for the delayed response! It looks like the rendering here has already improved from your original description. I can confirm, in it's current state, this is a duplicate of #504, so I'm going to close in favor of that one.

The workaround I added over there will work for this case as well. You can add an empty HTML comment between your lists to ensure that they become separate lists:

* `handlers.end` is fired when the end of the queue has been reached.

<!-- -->

* `.dequeue(id)` removes an item from the queue. Returns `true` on success or an `Error` on failure.

shawnajean avatar Mar 08 '17 22:03 shawnajean