Skip to content

Conversation

@wetor
Copy link
Contributor

@wetor wetor commented Nov 4, 2024

Implement #386
testcase: test/backquote_code_style

Fix ordered list indent

<ol start="1">
  <li>
    <span>now with numbers</span>
  </li>
  <li>
    <span>the prisoner</span>
  </li>
  <ol start="1">
    <li>
      <span>not an <i>italic number</i></span>
    </li>
    <li>
      <span>a <b>bold human</b> being</span>
    </li>
  </ol>
  <li>
    <span>end</span>
  </li>
</ol>

now it will be correctly converted into

  1. now with numbers
  2. the prisoner
    1. not an italic number
    2. a bold human being
  3. end

testcase : test/mixed_nested_lists

And, regarding the CLI parameter names and variable names in tri-backquote style, I didn't have a good name, so I used backquote_code_style. What do you think?

@wetor
Copy link
Contributor Author

wetor commented Nov 4, 2024

The implementation still has room for optimization, and discussion is welcome.

@codecov
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.42%. Comparing base (2723f84) to head (5ea5c32).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #431      +/-   ##
==========================================
+ Coverage   97.36%   97.42%   +0.06%     
==========================================
  Files          11       11              
  Lines        1137     1164      +27     
==========================================
+ Hits         1107     1134      +27     
  Misses         30       30              
Flag Coverage Δ
unittests-3.10 97.42% <100.00%> (+0.06%) ⬆️
unittests-3.11 97.42% <100.00%> (+0.06%) ⬆️
unittests-3.12 97.42% <100.00%> (+0.06%) ⬆️
unittests-3.13 97.42% <100.00%> (+0.06%) ⬆️
unittests-3.9 97.42% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zeMinng
Copy link

zeMinng commented Nov 14, 2024

Hello author, this function is very practical, I used today, but there is no formal package, I hope to merge and release soon

@Alir3z4 Alir3z4 merged commit 24e6b2f into Alir3z4:master Apr 13, 2025
11 checks passed
auouymous added a commit to auouymous/rss2email that referenced this pull request May 5, 2025
Alir3z4/html2text#431 changed the 'pre' tag
indentation spacing.

Fixes rss2email#278.

Reported-By: Luis Henriques
hartwork pushed a commit to hartwork/rss2email-fork that referenced this pull request Jun 12, 2025
Alir3z4/html2text#431 changed the 'pre' tag
indentation spacing.

Fixes rss2email#278.

Reported-By: Luis Henriques
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants