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
In RMarkdown, flair by default decorates the pattern everywhere it is found within the chunk, including in inline comments.
I'm wondering if this is intended behaviour, or if there could be an easy option to not decorate within comments.
I thought it could be done with a regex, but the only way I could think of was to start a regex with (?<!#.*) which of course doesn't work because a look-behind pattern match needs a bounded maximum length.
So then I was wondering if there was a way of filtering flair out at the level of CSS classes (ie .hljs-comment).
This is a seriously minor feature request but I thought I might as well suggest it in case you think it's a nice thing to add 🙏🏼
The text was updated successfully, but these errors were encountered:
francisbarton
changed the title
FR: only add flair to code; don't flair in comments
[FR]: Only add flair to code; don't flair in comments
Oct 3, 2020
In RMarkdown,
flair
by default decorates the pattern everywhere it is found within the chunk, including in inline comments.I'm wondering if this is intended behaviour, or if there could be an easy option to not decorate within comments.
I thought it could be done with a regex, but the only way I could think of was to start a regex with
(?<!#.*)
which of course doesn't work because a look-behind pattern match needs a bounded maximum length.So then I was wondering if there was a way of filtering flair out at the level of CSS classes (ie
.hljs-comment
).This is a seriously minor feature request but I thought I might as well suggest it in case you think it's a nice thing to add 🙏🏼
The text was updated successfully, but these errors were encountered: