Implement xp-framework/rfc#341: Drop support for XP 9 and lower
Release 7.0.0
End code blocks with "\n"
Spec tests: 519 failed -> 511 failed
Adjust expected outcomes in tests
Add whitespace to self-closing tags
Spec tests: 525 failed -> 519 failed
Announce spec compliance testing availability
Run via: $ curl -sSL https://github.com/commonmark/commonmark-spec/raw/master/spec.txt > spec.txt $ xp test src/it/php/ --spec=spec.txt
Download and test CommonMark Spec
MFH: Update to new testing library
Rewrite test
Merge branch 'master' into spec
Ensure all strings are trimmed
Merge pull request #14 from xp-forge/spec
Spec compliance testing
This pull request adds the infrastructure for running the CommonMark spec tests.
$ curl -sSL https://github.com/commonmark/commonmark-spec/raw/master/spec.txt > spec.txt
# ...
$ xp test net.daringfireball.markdown.unittest.CommonMarkSpecTest --spec=spec.txt
# ...
Test cases: 121 succeeded, 530 failed
Memory used: 5783.13 kB (7357.30 kB peak)
Time taken: 0.096 seconds (0.411 seconds overall)
Lots of TODOs 🙃
Will merge this (but not add it to the test suite) in order to iteratively reach more spec compliance
Trim "." from language
Change to
After some small adjustments we now have:
Test cases: 126 succeeded, 525 failed
Memory used: 5780.15 kB (7324.12 kB peak)
Time taken: 0.074 seconds (0.385 seconds overall)
Scanning through these lots of them seem to be related to whitespace handling and emitting.
Ensure all strings are trimmed
#17 is merged, fixing two tests
Emit code blocks as wrapped in
MFH
Merge pull request #17 from xp-forge/refactor/wrap-code-blocks
Emit code blocks as wrapped in
Emit code blocks as <code>
wrapped in <pre>
Solves problem described in issue #16
Merge branch 'master' into spec
Inline `code`!
```
Block of code
```
<p>Inline <code>code</code>!</p>
<code>Block of code
</code>
We want to highlight the code block, but don't want to do that for inline code. However, in the outputted HTML, they are not distinguishable.
Wrap the <code>
inside <pre>
. This would (by default):
white-space: pre-wrap
Emit code blocks as <code>
wrapped in <pre>
Solves problem described in issue #16
Emit code blocks as wrapped in
MFH
Merge pull request #17 from xp-forge/refactor/wrap-code-blocks
Emit code blocks as wrapped in
See #16. As far as I see from here https://github.com/commonmark/commonmark-spec/blob/8dbbe341608cf37d7fe9c3157c15e09cbbe359ce/alternative-html-blocks.txt#L165, https://spec.commonmark.org/0.30/#code-spans and https://spec.commonmark.org/0.30/#fenced-code-block this would also what the spec would expect.
⚠️: This is a BC break and would result in a major release, 7.0.0 at the time of writing.
Add support for fenced code blocks enclosed with ~~~
See https://spec.commonmark.org/0.30/#fenced-code-blocks
Merge pull request #18 from xp-forge/feature/tilde-code-fences
Add support for fenced code blocks enclosed with ~~~
Release 6.1.0
Merge branch 'master' of github.com:xp-forge/markdown
MFH
As far as I see from [...] this would also what the spec would expect.
Yes, #14 verifies this shoud be <pre><code>...</code></pre>
.
Rewrite test
Make this library compatible with XP 10
Do not allow PHP 7.4 to fail
Use PHP 7.4
Refrain from using deprecated annotation key/value pairs
Remove PHP 5.6 support
Group use statements
Rewrite isset(X) ? X : default to X ?? default
Convert newinstance to anonymous classes
Prepare 6.0.0
Convert unittests to PHP 8 attributes
Make compatible with PHP 8.1
Move testing from Travis CI to GitHub actions
Make compatible with XP 11
Fix "Creation of dynamic property" warnings in PHP 8.2
Add PHP 8.2 to test matrix
Migrate to new testing library
Merge pull request #15 from xp-forge/refactor/migrate-testing
Migrate to new testing library
Document new testing library
Add PHP 8.3
Add support for fenced code blocks enclosed with ~~~
See https://spec.commonmark.org/0.30/#fenced-code-blocks
Released in https://github.com/xp-forge/markdown/releases/tag/v6.1.0