Fix md label-lists rendering incorrectly

When converting docs from RDoc to Markdown, some label-lists ended up
not rendering properly. This appears to be due to RDoc's Markdown
parser not recognizing label-list labels if the label has additional
markup around it (in this case, bold markers `**`).

Additionally, the markdown label-list was missing newlines between list
items which also caused the label-list to not render correctly.

This commit fixes both of these issues for cases where the RDoc
originally used <b> tags in a label-list label. Since label-list labels
will already be bolded, there is no reason to also use `**` on the
labels.
This commit is contained in:
Hartley McGuire 2024-03-06 18:11:14 -05:00
parent f7353283fd
commit 6640b85b69
No known key found for this signature in database
GPG Key ID: E823FC1403858A82
2 changed files with 10 additions and 6 deletions

View File

@ -142,12 +142,14 @@ module ActionCable
# ActionCable::Channel::TestCase will also automatically provide the following
# instance methods for use in the tests:
#
# **connection**
# connection
# : An ActionCable::Channel::ConnectionStub, representing the current HTTP
# connection.
# **subscription**
#
# subscription
# : An instance of the current channel, created when you call `subscribe`.
# **transmissions**
#
# transmissions
# : A list of all messages that have been transmitted into the channel.
#
#

View File

@ -288,14 +288,16 @@ module ActionController
# ActionController::TestCase will also automatically provide the following
# instance variables for use in the tests:
#
# **@controller**
# @controller
# : The controller instance that will be tested.
# **@request**
#
# @request
# : An ActionController::TestRequest, representing the current HTTP request.
# You can modify this object before sending the HTTP request. For example,
# you might want to set some session properties before sending a GET
# request.
# **@response**
#
# @response
# : An ActionDispatch::TestResponse object, representing the response of the
# last HTTP response. In the above example, `@response` becomes valid after
# calling `post`. If the various assert methods are not sufficient, then you