Repository navigation
Conversation
…ener An outdented <script> line that ends a list item's fence still opens raw text, so ::a inside it is not read as a component.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@onmax is attempting to deploy a commit to the NuxtLabs Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Architecture Data flow No data-flow sequence changed in this PR. Review ✨ Nothing flagged · reviewed Tip Open a diagram on the canvas, then press W or click play to walk through the change one step at a time 🪧 More tips
Thanks for using PR Lens! It's free for OSS. If it helped, a star helps other teams find it. |
Merging this PR will not alter performance1 warning
Comparing |
What
scanBlocksinpackages/comark/src/auto-close.tsnow runs theRAW_TEXT_OPEN_REcheck only whenfenceLen === 0, so lines inside a fenced code block do not enter raw-text mode. I added a test inpackages/comark/test/auto-close.test.tsfor fenced<script setup>and<style>lines.Why
When a line inside a code fence starts with
<script,<style,<pre, or<textareaand the fence has no matching closing tag,autoCloseMarkdownappends an extra::to a complete document andparserenders it as a stray paragraph.scanBlocksran the raw-text check before the fence check and ignoredfenceLen, so the scanner switched into raw-text mode and skipped both the closing fence and the::. A diff of a Vue file inside a component hits this often, since a hunk shows<script setup lang="ts">without</script>.Closes #658
Summary by CodeRabbit