thekid
Repos
48
Followers
68
Following
7

A port of the inotify-wait tool for Windows

249
61

Dialog photoblog

2
1

The XP Framework is an all-purpose, object oriented PHP framework.

18
6

Compiles future PHP to today's PHP.

16
0

The PHP Interpreter

C
35220
7163

CAS Server in PHP

1
0

Events

create tag
thekid create tag v7.0.0
Created at 6 days ago

Implement xp-framework/rfc#341: Drop support for XP 9 and lower

Created at 6 days ago
delete tag
thekid delete tag v7.0.0
Created at 6 days ago
create tag
thekid create tag v7.0.0
Created at 6 days ago

Release 7.0.0

Created at 6 days ago

End code blocks with "\n"

Spec tests: 519 failed -> 511 failed

Adjust expected outcomes in tests

Created at 6 days ago

Add whitespace to self-closing tags

Spec tests: 525 failed -> 519 failed

Created at 6 days ago

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

Created at 6 days ago
delete branch
thekid delete branch spec
Created at 6 days ago

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

Created at 6 days ago
pull request closed
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 🙃

Created at 6 days ago
issue comment
Spec compliance testing

Will merge this (but not add it to the test suite) in order to iteratively reach more spec compliance

Created at 6 days ago

Trim "." from language

Created at 6 days ago

Change to

Created at 6 days ago
issue comment
Spec compliance testing

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.

Created at 6 days ago

Ensure all strings are trimmed

Created at 6 days ago
issue comment
Spec compliance testing

#17 is merged, fixing two tests

Created at 6 days ago

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

Created at 6 days ago
closed issue
Make inline code distinguishable from code blocks

Input

Inline `code`!

```
Block of code
```

Output

<p>Inline <code>code</code>!</p>
<code>Block of code
</code>

Problem

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.

Idea

Wrap the <code> inside <pre>. This would (by default):

  • Remove the necessity of styling the code element with white-space: pre-wrap
  • Make it easily interoperable with https://highlightjs.org/
  • Make it compliant with Marked.JS for example
Created at 6 days ago

Emit code blocks as <code> wrapped in <pre>

Solves problem described in issue #16

Created at 6 days ago
delete branch
thekid delete branch refactor/wrap-code-blocks
Created at 6 days ago

Emit code blocks as wrapped in

MFH

Merge pull request #17 from xp-forge/refactor/wrap-code-blocks

Emit code blocks as wrapped in

Created at 6 days ago
pull request closed
Emit code blocks as <code> wrapped in <pre>

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.

Created at 6 days ago

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

Created at 6 days ago
issue comment
Emit code blocks as <code> wrapped in <pre>

As far as I see from [...] this would also what the spec would expect.

Yes, #14 verifies this shoud be <pre><code>...</code></pre>.

Created at 6 days ago

Rewrite test

Created at 6 days ago

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

Created at 6 days ago
issue comment
Add support for fenced code blocks enclosed with `~~~`

Released in https://github.com/xp-forge/markdown/releases/tag/v6.1.0

Created at 6 days ago