You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work on a site sometimes where we have to be careful about long words in code tags. They don't wrap unless we insert tags. I'd love to make a rule that looks for the long words and warns me, but I can't quite figure it out.
I had something like this:
# I sometimes get wrapping issues when I have long sequences without whitespace in <code> or <pre>.
extends: existence
message: "Avoid using long sequences without whitespace inside code blocks: '%s'"
level: warning
scope: ...?
# Regex to match non-whitespace sequences (e.g., sequences longer than X characters)
raw:
- '\S{20,}'
but, of course, it isn't really right.
Is there a way to search over (and limit to?) the things inside backticks in Markdown or <code> or <pre> tags in html?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi folks!
I work on a site sometimes where we have to be careful about long words in code tags. They don't wrap unless we insert tags. I'd love to make a rule that looks for the long words and warns me, but I can't quite figure it out.
I had something like this:
but, of course, it isn't really right.
Is there a way to search over (and limit to?) the things inside backticks in Markdown or
<code>
or<pre>
tags in html?Beta Was this translation helpful? Give feedback.
All reactions