Closed jpmedley closed 4 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. To prevent this from happening, leave a comment.
Bringing this back to life.
I think it's the introducing of the newlines that's breaking it. I rewrote the snippet as:
and it seemed to highlight ok:
Just from an aesthetics perspective, I think I find my version a bit easier to read. I tend to prefer to horizontally scroll code samples if they run long, versus introducing whitespace which can make them a bit awkward to read.
That's all beside the point. This issue is about the fact that the feature's not doing what I asked or expected.
I think it's doing that because of the introduction of newlines. That's as far as I can dig into it unfortunately.
It might be related to this issue but I really don't know. I think this plugin is using prisma so there's a couple of levels of indirection 🤷♂️
With respect, this is not an unreasonable ask. If I ask it to highlight lines 3 through 5 and it doesn't do it, it's broken.
Maybe worth filing upstream at the dependency here (I own the dependency, hi): https://github.com/11ty/eleventy-plugin-syntaxhighlight
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. To prevent this from happening, leave a comment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. To prevent this from happening, leave a comment.
Should we keep this open until @zachleat updates 11ty?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. To prevent this from happening, leave a comment.
Closing this issue because it has been marked as stale for more than 7 days.
Describe the bug An embedded HTML code sample in a new article specifies that lines 3 through 7 should be highlighted. Only lines 3 through 5 are actually behing highlighted.
To Reproduce View the rendered article in any staging environment.