Creole-Talk
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Comments
ccox - 2016-06-09
Supposedly creole ordered lists are section numeric outline incremented. I added the following to my local.css:
/* Creole style ordered lists if inside class creolelist */ .creolelist ol { counter-reset: section; /* Creates a new instance of the section counter with each ol element */ list-style-type: none; } .creolelist li::before { counter-increment: section; /* Increments only this instance of the section counter */ content: counters(section,".") " "; /* Adds the value of all instances of the section counter separated by a ".". */ /* if you need to support < IE8 then make sure there is no space after the ',' */ }
Which allows me to do things like:
>>creolelist<< # Numbered List # Second Item ## Sub Item ### Sub Sub Item ### Second Sub Sub Item ## Second Sub Item >><<
ccox - 2016-06-09
Also appears that table headings are not supported in the current creole for PmWiki.
I know that the Creole standard is still in the early stages, but are you planning on having it eventually be the default markup method in PmWiki? It seems just as easy to implement Creole as it does the current markup method. Plus, some of the Creole methods make more sense, such as slashes and asterisks for italic and bold.
Since PmWiki 2.2 is going to be a fairly major upgrade, why not use the latest version of Creole by default with the 2.2 stable release. Most of the basic features in Creole seem solid already. It would make more sense to implement such a big change in markup with all of the other big changes in 2.2, because people upgrading to it will make the leap in one go, rather than making several large leaps. Plus, 2.2's long beta cycle would make a good environment to test everything out in, especially with Cookbook compatibility.
'''...'''
and ''..''
forms for backward compatibility. --Pm
pmwiki-2.2.0-beta26's docs/sample-config.php
suggests setting $EnableCreoleMarkup = 1;
to enable Creole. Is this equivalent to include_once('scripts/creole.php');
? As far as I can see, scripts/stdconfig.php
does not check for the $EnableCreoleMarkup
variable. Sigurd?
There seems to be a bug interpreting WikiCreole's syntax. When using preformatted text ('3x{' and '3x}'), newlines are not being outputted. If I use multiple lines inside a preformatted block, the output is presented in a single line. SergioNunes? March 01, 2007
Since Pmwiki (v2.2.0-beta65) does not use the creole markup below (proposed by Feral) they are a bug with some external link. For example:
* https://wiki.ubuntu.com //some emphasized text// |
|
I've seen some other bugs, where HTTPS scheme where not handled by urlapprove (but I'm not sure if it does not come from my config)... It seems that the markup proposed by Feral fix this bug. Dfolio November 19, 2007 at 10:51 PM
Just in case it is of any value to anyone I have ended up with this style of markup for my preferred (creol)
Markup("//", ">urllink", "/\/\/(.+?)\/\//", "<i>$1</i>"); // //Italic//, After urllink so that this works after a bareurl. Markup("__", "inline", "/__(.+?)__/", "<u>$1</u>"); // __Underline__ Markup("**", "inline", "/([^*])\*\*(.+?)\*\*/", "$1<b>$2</b>"); // **Bold** Markup("^**", "<^*", "/^\*\*([^*]+?)\*\*/", "<b>$1</b>"); // [Feral:058/07@05:02] Special case; bold at start of line.
I have NO IDEA if this is a good way to go about it, however I have found it to be more error free than the presented method in creole.php, this said apart from general usage this little snippet might be handy:
* Bold-Italic-Underline: [@**//__text__//**= __text__
* Bold-Underline-Italic:**__//text//__**
= __text__ * Italic-Underline-Bold://__**text**__//
= __text__ * Italic-Bold-Underline://**__text__**//
= __text__ * Underline-Bold-Italic:__**//text//**__
= __text__ * Underline-Italic-Bold:__//**text**//__
= __text__
@]
I wish you all the best AND happiness too! (=
I found this to be even more error free than the default and the one proposed by Feral:
Markup('**', 'inline', '/^\\*\\*(?!\\*)(?>(.+?)\\*\\*)(?!\\S)|(?<!^|\\*)\\*\\*(.+?)\\*\\*/', '<strong>$1$2</strong>');
Wiki Creole markup has just reached the final the final v1.0 spec (2007-Jul-04). Is there a chance to see this fully implemented in PmWiki ?
When switching to Creole in PMWiki 2.2 beta57, Headings GUI buttons (H2 and H3 enabled in config.php) are always returning '!!' and '!!!' But when I type the Creole markup by hand, it works fine. So I've looked at creole.php and there seems to be nothing related to the additionnal H2 and H3 GUI buttons. Could this be fixed please ? Thanks :)
There is a small aspect of Creole 1.0 which is not supported it seems. See here