teknologi-umum / graphene

Lighter Carbon alternative made with Shiki
MIT License
27 stars 10 forks source link

fix: linebreak soft wrap #109

Closed krowter closed 2 years ago

krowter commented 2 years ago

Add soft wrapping for issue #34 Basic idea: if the token exceeds maxLineWidth, cut it and put the remaining into chunks to be rendered below the main line. No line number. Highlighting is preserved.

@elianiva sementara maxLineWidth dan width/height (<- ini dari request kan nanti) dicomment

Baru coba untuk JavaScript aja

Not wrapped not-wrapped

Wrapped maxLineWidth = 40 wrapped

lgtm-com[bot] commented 2 years ago

This pull request introduces 3 alerts when merging 53cb63f98c19ca89745f6ad23cf4df8f440e0f24 into 8fff3de85fac5bd1334210efba1a6f57781c7e4f - view on LGTM.com

new alerts:

codecov[bot] commented 2 years ago

Codecov Report

Merging #109 (53cb63f) into master (8fff3de) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 53cb63f differs from pull request most recent head 25ebc45. Consider uploading reports for the commit 25ebc45 to get more accurate results

Impacted file tree graph

@@      Coverage Diff      @@
##   master   #109   +/-   ##
=============================
=============================

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8fff3de...25ebc45. Read the comment docs.

lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert when merging f8c47f22f87dafc7c9ee31497d3f5fda17dd38e1 into 8fff3de85fac5bd1334210efba1a6f57781c7e4f - view on LGTM.com

new alerts:

lgtm-com[bot] commented 2 years ago

This pull request introduces 3 alerts when merging 03b9a6e0e5907c6904ae62b524b94de8098c26a0 into 8fff3de85fac5bd1334210efba1a6f57781c7e4f - view on LGTM.com

new alerts:

lgtm-com[bot] commented 2 years ago

This pull request introduces 3 alerts when merging 25ebc459aa28ae7713ad75b9a1b14933948a6a7a into 8fff3de85fac5bd1334210efba1a6f57781c7e4f - view on LGTM.com

new alerts: