Repository navigation
Conversation
Signed-off-by: Nicolás de Lucas <196220050+nicdeluc@users.noreply.github.com>
|
✅ DCO Check Passed Thanks @nicdeluc, all your commits are properly signed off. 🎉 |
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
AI triage (advisory)Checked commit Plain-text input ( Topic labels added: CI safety: no concern found. A maintainer must still approve CI. 1 related pull request(s) in the same code
The |
There was a problem hiding this comment.
AI first review (advisory): no blocker found
This review covers the full diff at 07e3aa0d67. It read the code and did not run it.
I checked that plain-text inputs with extensions .txt and .text disable Marko HTML blocks and inline HTML elements while standard Markdown parsing remains unchanged.
A maintainer makes the merge decision. This review never approves the pull request.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Parse
.txtand.textinput without Marko's HTML elements, so text that looks like a tag (<Enter>,std::vector<int>, a line holding only<your name>) stays literal instead of being dropped. Markdown files are unchanged.Since #3161 plain text goes through the Markdown backend, which drops every HTML tag except
<br>. A small Marko extension, added only for plain-text input, turns offHTMLBlockandInlineHTML.Trade-off: real HTML in a
.txtfile (<br>, comments, tables) now also stays literal text. The docs say so.Issue resolved by this Pull Request:
Resolves #5688
Checklist:
Review evidence:
main4335cd3): a.txtfile withPress <Enter> to go., a line<your name>and a list item- Item <one><br>twogives the texts['Press to go.', 'Item\ntwo'].['Press <Enter> to go.', '<your name>', 'Item <one><br>two'], as two texts and a list item..mdinput converts as before (First<bravo>secondstill becomesFirstsecond).test_plain_text_keeps_tag_like_textfails onmainand passes with the change.pytest tests/test_backend_markdown.py tests/test_backend_markdown_inline_html.py tests/test_backend_markdown_images.py tests/test_markdown_math.py tests/test_backend_text_encoding.py tests/test_input_doc.py tests/test_zip_batch_input.py tests/test_invalid_input.py tests/test_backend_patent_uspto.py tests/test_backend_html.py: 530 passed, 2 skipped.prek run --fileson the changed files passes.