Skip to content
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 parsed html spacings #55

Merged
merged 1 commit into from
Nov 11, 2023
Merged

Conversation

kiranparajuli589
Copy link
Owner

@kiranparajuli589 kiranparajuli589 commented Nov 11, 2023

Proposed changes

  • optimize html block parsing
  • manage spacing for parsed html

Signed-off-by: Parajuli Kiran <[email protected]>
Copy link

JS Code Coverage

Coverage after merging fix-parsed-html-spacings into main will be
93.69%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
lib
   index.js93.48%62.50%100%100%14, 20, 27
lib/cli
   index.js0%0%0%0%1, 1, 10–19, 2, 20, 3–9
lib/lexer
   index.js95.74%97.01%94.74%95.53%125–136, 295–297, 65
lib/parser
   index.js100%100%100%100%
lib/regex
   index.js100%100%100%100%
lib/tokenizer
   codeblock.js98.65%98.11%100%98.71%221–224
   comment.js100%100%100%100%
   frontMatter.js89.42%78.26%100%91.89%25–27, 53–58, 62–63
   heading.js100%100%100%100%
   hrLine.js100%100%100%100%
   html.js22.06%100%66.67%17.46%10–33, 37–61, 7–9
   image.js100%100%100%100%
   index.js100%100%100%100%
   list.js99.39%98.11%100%99.62%97–98
   newline.js86.67%100%66.67%86.96%18–20
   paragraph.js95.84%93.58%100%96.27%163–164, 220–226, 293, 39, 433–443, 92–93
   quote.js100%100%100%100%
   table.js99.70%98.21%100%100%47
lib/util
   esc.js81.03%75%75%82.61%27–34, 37, 7
   file.js78.38%60%75%82.14%15, 18–23
   indent.js90.53%100%71.43%90.79%69–73, 8–9
   index.js100%100%100%100%
   tokens.js100%100%100%100%
   utils.js80.67%95.24%70%79.71%117–119, 39–59, 70–84, 93–96

@kiranparajuli589 kiranparajuli589 merged commit fd301e7 into main Nov 11, 2023
2 checks passed
@kiranparajuli589 kiranparajuli589 deleted the fix-parsed-html-spacings branch November 11, 2023 15:47
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.

1 participant