Skip to content

Accept raw format fences without a separating space - #328

Merged
dereuromark merged 1 commit into
masterfrom
fix/326-raw-format-fence
Oct 22, 2026
Merged

dereuromark merged 1 commit into
masterfrom
fix/326-raw-format-fence

Conversation

@dereuromark

Copy link
Copy Markdown
Contributor

Summary

Accept raw format fences with no space before =html, as djot.js does. The parser now allows zero or more spaces before =.

Adds regression coverage at the document root and inside a list item.

Checks

  • PHPUnit: 4,628 tests, 31,220 assertions passed
  • PHP_CodeSniffer: passed on changed files
  • PHPStan: no errors

Closes #326

@dereuromark dereuromark added the bug Something isn't working label Oct 22, 2026
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.21%. Comparing base (4ccf5cc) to head (2b551d1).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #328   +/-   ##
=========================================
  Coverage     93.21%   93.21%           
  Complexity     4815     4815           
=========================================
  Files           118      118           
  Lines         12821    12821           
=========================================
  Hits          11951    11951           
  Misses          870      870           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dereuromark
dereuromark merged commit 44ca5e5 into master Oct 22, 2026
6 checks passed
@dereuromark
dereuromark deleted the fix/326-raw-format-fence branch October 22, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raw format fence without a space before =html renders as code

1 participant