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

Line highlight doesn't line up when a line above text wraps #3770

Open
dragoncoder047 opened this issue Feb 2, 2024 · 0 comments
Open

Line highlight doesn't line up when a line above text wraps #3770

dragoncoder047 opened this issue Feb 2, 2024 · 0 comments

Comments

@dragoncoder047
Copy link

dragoncoder047 commented Feb 2, 2024

Information

  • Language: doesn't matter
  • Plugins: line highlight is the issue but see below
/* PrismJS 1.28.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=clike+javascript+python&plugins=line-highlight+line-numbers+autolinker+show-language+autoloader+toolbar+copy-to-clipboard+download-button+match-braces */

Description

I have the line highlight plugin to emphasize some lines on my website. However, when I view it in mobile the lines text wrap (intentionally) and mess up the alignment on the line highlight boxes.

mobile view:

image

wider view (no text wrapping = correct lines get highlighted):

image

(for reference, the page is: https://dragoncoder047.github.io/pages/ulisp_howto/macros.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant