-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creole reader #3994
Creole reader #3994
Conversation
No real functionality besides preliminary bold and italics yet.
No real functionality besides preliminary bold and italics yet.
So far this covers only things the parser already supports.
Fails test, as sublists should not be embedded in a list item!
Covering ordered and unordered tests, even mixed. Tests for formatting in list items still missing...
Used the opportunity for a little refactoring.
Including test.
After observing a regression, it was really time... ;-)
Space after the start of formatting tags are allowed with creole, e.g. "there is // italic text // in here" is legal. This problem was discovered using the creole1.0test.txt document from http://www.wikicreole.org/wiki/Creole1.0TestCases See l.57: # // italic item 3 //
Fantastic! Have you tested this much on real-world creole? I tried it out on the source of http://www.wikicreole.org/wiki/Creole1.0 (which I'm assuming is creole), and I noticed some For example:
I'd suggest running this against a number of real-world creole texts and comparing your parser's output to the output of a standard creole parser. (I note that the creole wiki's sandbox says it's not a reference implementation of creole -- so maybe the above are bugs in it rather than in your reader -- but presumably there is a reference implementation somewhere!) What you have looks close to being ready to merge, and if some of the kinks can be ironed out soon enough, we might even be able to include this in the upcoming 2.0 release. |
PS. In addition to the highly focused tests you have, you might add some tests with multiple blocks, since it's important to test the transitions between blocks. Or you could add an "old" style reader (golden) test, like |
Thanks for your reply.
Yes. I tried it with a few creole documents from the company I'm
I'll check them out and make fixes where I think they are appropriate.
There is no reference implementation I'm aware of, and to my best So the only official reference for Creole 1.0 is the textual As a reference test case I used creole1.0test.txt from
Thant really sounds great. Thanks! |
Hi, I looked into the problems you reported:
This is the case e.g. with the description of bold and italic. But For example, the wiki source reads
The standard says on NoWiki (reformatted, verbatim text):
So
It's Same is true for
Right. I fixed this.
Once again, this is not Creole but JSPWiki markup.
Same here: Creole link would be
There are two issues:
Regarding the additional Tests. I'll look into that the next days... What else would be required for the reader to get merged? cheers |
I think it's already good to merge. More tests would be good, but we can merge those in later. |
Thank you! |
I wrote a reader for Creole 1.0 http://www.wikicreole.org/wiki/Creole1.0 including a bunch of tests.
It is feature complete, not very thoroughly tested yet, though.