-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Nokogiri Node.new
deprecation warnings
#296
Conversation
Reproduces the deprecation warning in the example app
@@ -69,7 +69,7 @@ def table_row(body) | |||
first_child.content = leading_text.sub(/# */, "") | |||
end | |||
|
|||
tr = Nokogiri::XML::Node.new "tr", fragment | |||
tr = Nokogiri::XML::Node.new "tr", fragment.document |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change can be tested by viewing:
http://localhost:4567/code.html
If you checkout just the first commit you will see the deprecation warning, if you then apply the second commit you will see it fixed
pre = Nokogiri::XML::Node.new "pre", fragment.document | ||
pre["tabindex"] = "0" | ||
code = Nokogiri::XML::Node.new "code", fragment | ||
code = Nokogiri::XML::Node.new "code", fragment.document |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't sure how to test these, it appears to be a fallback for when you don't have a source code highlighter, but I think it should be okay given the other change worked.
</div> | ||
| httpResult | Message | How to fix | | ||
| - | - | - | | ||
| `400` | `[{`<br>`"error": "BadRequestError",`<br>`"message": "Can't send to this recipient using a team-only API key"`<br>`]}` | Use the correct type of API key | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Credit to https://alvinalexander.com/text/how-put-multiple-lines-markdown-table-cell-multiline-table/ on how to do a multi-line markdown table 🎉
Node.new
deprecation warnings
Fixes #295
What’s changed
Deprecation warnings from Nokogiri addressed when rendering markdown tables
Identifying a user need
Not spamming my logs pls and thank you
cc @lfdebrux