Skip to content

Unclosed fenced code block defeats the prose/code boundary #12

Description

@royalpinto007

Problem

With an unclosed fenced code block the prose/code regex finds zero blocks, so prose rules fire inside code while code rules never fire. Both directions wrong.

Where

src/scan.js (fence regex requires a closing fence; empty blocks handling).

Acceptance

Add a failing test first with an unclosed fence asserting prose rules stay silent after the opening fence (or the fence extends to EOF). Then fix.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions