Commit Graph

60 Commits

Author SHA1 Message Date
Alex Schroeder
b66f91a5c9 (CreoleRule): Fix bugs introduced by the last fix. 2009-03-02 18:09:48 +00:00
Alex Schroeder
7eebff9652 (CreoleRule): Use an elsif instead of an if
within the rules.
2009-03-02 17:53:43 +00:00
Alex Schroeder
806556dea4 (CreoleInit): Don't change $FreeLinkPattern as
that intereferes with bbcode.pl.
2008-12-16 01:17:43 +00:00
Alex Schroeder
cc8c6f4619 * modules/creole.pl (CreoleRule): Implemented handling of so-called
"interlinks" -- i.e., links to external Wikis via the "$InterMap"
page. (So, Creole syntax is now embeddable within interlinks!)
2008-11-24 01:34:48 +00:00
Alex Schroeder
dca2a6af50 * wiki.pl (PrintWikiToHTML): Slightly reordered function calls,
so as to optimize a few edge cases.
2008-11-16 01:00:04 +00:00
Alex Schroeder
b6fda33eb8 * wiki.pl (RegisterBlockLevelElement): Renamed to
SetHtmlEnvironmentContainer (and changed in every other module,
where called).
2008-11-15 21:24:32 +00:00
Alex Schroeder
52fbc24f65 * wiki.pl (AddHtmlEnvironment): Corrected a minor regression.
Probably not a genuine issue... but one can never tell.
* modules/creole.pl (CloseHtmlEnvironmentsCreole): Removed.
* modules/creoleaddition.pl (CloseHtmlEnvironmentsCreoleAddition):
Removed.
* modules/poetry.pl (CloseHtmlEnvironmentsPoetry): Removed.
2008-11-15 12:53:25 +00:00
Alex Schroeder
9bf6fc8ac9 * modules/creole.pl (CreoleListAndNewLineRule): Corrected a regression
accidentally introduced by my last commit! Yay.
2008-11-11 23:58:24 +00:00
Alex Schroeder
6a9f180e54 * modules/creole.pl (CreoleRule): Corrected a horrific link-caching
issue with my last commit. Apologies to those who've already
installed the last commit: this one should be (substantially!) more
stable.
2008-11-10 15:53:22 +00:00
Alex Schroeder
d859112b3a * modules/creole.pl (CreoleRule): Simplified implementation and
integrated with improvements to CreoleHeaderRule().
(CreoleHeaderRule): Improved -- remarkably. Header markup may now
include all other (non-bol) markup, with exception of link markup
producing a dirty HTML block. ("Dirty" link markup in header
markup is stripped out, as appropriate.)
(CreoleListAndNewlineRule): Simplified implementation.
(CreoleRuleRecursive): Supported the global @HtmlAttrStack.
(GetCreoleLinkHtml): New function, reducing code-bloat.
* modules/creoleaddition.pl (CreoleAdditionRule): Simplified
implementation; and handled small caps markup properly, now.
2008-11-06 10:11:02 +00:00
Alex Schroeder
7ccd891272 * modules/wiki.pl (OpenHtmlEnvironment): Generalized list closure
by delegating that closure to the "CloseHtmlEnvironments" function.
This permits other extensions (namely, the Creole Markup extension)
to redefine the "CloseHtmlEnvironments" function and thereby
precisely override just when and how list markup is closed.
* modules/creole.pl ($CreoleDashStyleUnorderedLists): New option.
(RunMyRules): New function.
(CreoleRule): Improved conformance to the Wiki Creole standard by
strictly requiring, among other notable things, that horizontal
rules consist of four and only four dashes, that all image links
to images on the Wiki (e.g., image "FreeLinks") be marked as dirty
blocks, that the nowiki markup strictly require the opening and
closing three braces to reside on their own lines having no other
markup, and that preformatted code not extend over multiple blocks.
(CreoleListAndNewLineRule): Avoid handling dash-style unordered
list markup unless explicitly requested by the new
"$CreoleDashStyleUnorderedLists" option being set to 1 (since
that markup is non-standard, and explicitly contradicts the Wiki
Creole standard).
* t/creole.t: Adjusted tests broken by the above modifications;
these were, typically, tests for nowiki and preformatted markup
that assumed a less conformant, gentler handling of that markup.
2008-10-24 04:34:09 +00:00
Alex Schroeder
e833fed540 (CreoleRule): Fix dirty block handling for the
[[page]] and [[page|text]] rules.
2008-10-06 22:51:50 +00:00
Alex Schroeder
f190140b78 * modules/creole.pl (CreoleRule): Allow one newline character following an explicit pipe character to end a table. 2008-10-06 22:21:17 +00:00
Alex Schroeder
e99cdf3cd6 * wiki.pl (ApplyRules): Ensure the regular expression match
position returns the length of the matched string on finishing
application of all rules. ("creole.pl" and "creoleaddition.pl" now
depend on this; it notifies them that rules are now finished.)
* modules/creoleaddition.pl (CreoleAdditionRule): Injected a sanity
check, to ensure closure of blockquotes at the end of a page.
* modules/creole.pl ($CreoleTableCellsAllowBlockLevelElements): New
option.
* modules/creole.pl (CreoleRule): The last, one hopes, of all Creole
table markup modifications (for the moment). The rather complex
table markup code has been modified so as to use the new option, has
been refactored for robustness and strict conformance to the Wiki
Creole standard, and has been well-documented.
* modules/creole.pl (CreoleGetTableHtmlAttributes): Deleted function.
2008-10-06 06:11:20 +00:00
Alex Schroeder
eee68cd057 (CreoleRule): Added link around image for the
[[url|{{url}}]] rule.
2008-10-04 11:07:54 +00:00
Alex Schroeder
d0a8ab50ab * modules/creole.pl (CreoleRuleRecursive): New function. Permits embedding
of Wiki Creole syntax within Wiki Creole syntax. (Yes... This is confusing?)
* modules/creole.pl (CreoleRule): Used the new function. Specifically, you
can now embed Creole and CreoleAddition syntax (such as bold, italics, small
caps, and so on) within URL and Wiki link text, ala
  "[[Some_Page|Wow! **Quite** an //%%interesting page%%// page, here]]."
* modules/creoleaddition.pl (CreoleAdditionRule): Renamed function from
"CreoleAdditionRules" to this.
2008-10-04 03:30:50 +00:00
Alex Schroeder
286cf97e7c * modules/creole.pl: "There be dragons, here." This module now
supports a significantly stabler, more robust syntax--including:
multiline table cells, block level elements in table cells, CSS
stylization for images and image links, simpler, more efficient
regular expressions, new perldoc-style documentation, and a subtle
slew of other bug fixes. "Huzzah!"
* modules/creoleaddition.pl (AddOrCloseCreoleAdditionEnvironment): New
function.
(CreoleAdditionRules): Usage of the new function.
* t/creole.pl: Corrected all non-XPath-dependent tests.
* t/creoleaddition.pl: Corrected all non-XPath-dependent tests.
2008-10-01 07:54:44 +00:00
Alex Schroeder
a62372e634 (CreoleListRule): New. Added with a very late
priority.
(CreoleNewLineRule): Add two more newline oriented rule items and
moved priority even further back.
(CreoleRule): Removed list items and newline rules.
2008-07-12 15:27:54 +00:00
Alex Schroeder
4c65fdffaf *** empty log message *** 2008-06-26 08:00:36 +00:00
Alex Schroeder
f216c310de Updated to GPLv3 and added a separate copyright line for Weakish Jiang. 2008-06-26 07:56:47 +00:00
Alex Schroeder
a22059e9cc (CreoleHeadingRule): Better support on headings more than 6 levels 2008-06-25 15:03:28 +00:00
Alex Schroeder
d35f46a3cf (CreoleRule): When CreoleLinebreaks set to 1, \\n won't produce extra br tags now. 2008-06-24 17:14:53 +00:00
Alex Schroeder
670fcf08b7 (CreoleNewLineRule): Avoid adding useless br tags in lists, etc. 2008-06-24 12:32:06 +00:00
Alex Schroeder
367db6a23a ($CreoleTildeAlternative): New option.
(CreoleRule): Added tilde proposal using $CreoleTildeAlternative.
2008-03-31 14:56:30 +00:00
Alex Schroeder
c5674ecc52 * (CreoleHeadingRule): Change the match pattern for preformatted block
in order to conform Creole 1.0's standard. The actual RegExp change is
  provided from Alex Schröder.
2008-02-21 14:55:25 +00:00
Alex Schroeder
39449b0c4b (CreoleRule): The \n after {{{ is mandatory
for a pre block. Horizontal whitespace is allowed.
2007-10-23 09:33:38 +00:00
Alex Schroeder
8f9e02906c (CreoleRule): The \n after {{{ is mandatory
for a pre block.
2007-10-23 09:32:57 +00:00
Alex Schroeder
7f82b5ecb7 (CreoleRule): Added ~ rule. 2007-08-30 06:27:56 +00:00
Alex Schroeder
f92cee94ee (CreoleRule): Be more tolerant with whitespace
following $FullUrlPattern.
2007-07-19 23:39:34 +00:00
Alex Schroeder
30fccff7df Whitespace changes. 2007-07-10 13:31:22 +00:00
Alex Schroeder
3672690486 (CreoleRule): Fix {{{{bar}}}}. 2007-07-10 13:30:10 +00:00
Alex Schroeder
a87c6fa668 (CreoleRule): Require space after dash and
don't allow nesting of dashes used for bullet lists.
2007-04-22 07:52:02 +00:00
Alex Schroeder
56b3485f94 (CreoleRule): Fix bug with double dirty
blocks.
2007-04-13 23:27:16 +00:00
Alex Schroeder
7ae170ff16 (CreoleRule): Support hyphen for bullet list
items.
2007-04-05 07:30:13 +00:00
Alex Schroeder
76538c8de7 (CreoleRule): Make image within links regexp non-greedy. 2007-04-04 11:05:02 +00:00
Alex Schroeder
2be3401b68 (CreoleRule): New Table code. 2007-04-04 10:59:25 +00:00
Alex Schroeder
71bbb79257 (CreoleRule): Remove leading space if used to "quote" closing
preformatting sequence.
2007-04-03 21:39:40 +00:00
Alex Schroeder
fb2808d6e1 (CreoleRule): Implement Creole 0.5 table
headers.
2007-04-03 21:30:13 +00:00
Alex Schroeder
003c7df3c7 (CreoleHeadingRule): Support = for h1. 2007-02-13 11:52:23 +00:00
Alex Schroeder
2584080321 (CreoleRule): Support \\. 2007-02-13 11:51:01 +00:00
Alex Schroeder
5d6f0822b8 (CreoleRule, $CreoleLineBreaks): New. 2007-02-13 11:49:58 +00:00
Alex Schroeder
bb1ecbeec4 Add CreoleHeadingRule to MyRules. 2007-01-14 13:44:24 +00:00
Alex Schroeder
0f23a11b05 (CreoleHeadingRule, CreoleRule): Moved
headings into separate rule with a very different priority so that
the rule from toc.pl can override it.
2007-01-12 20:59:02 +00:00
Alex Schroeder
0300cbf259 (CreoleRule): Added simple tables.
(CreoleRule): New.
2007-01-12 02:40:42 +00:00
Alex Schroeder
a3dcfcc7f6 (CreoleRule): Improved heuristics allowing
bold words at the beginning of paragraphs.
2006-11-27 20:59:51 +00:00
Alex Schroeder
a2b11f4bec (CreoleRule): Support {{mu|text}}, ie. Creole
0.2.
2006-11-26 11:03:20 +00:00
Alex Schroeder
7ebb7e6a9d (CreoleRule): Fix hr rule. 2006-09-12 13:31:21 +00:00
Alex Schroeder
70db6e147c (CreoleRule): No markup within headings. No
space required after list item character.
2006-09-08 20:35:32 +00:00
Alex Schroeder
b2d75f5e88 (CreoleRule): Use code for inline unprocessed. 2006-09-07 01:37:31 +00:00
Alex Schroeder
83e0292714 (CreoleRule): Eat more list characters. 2006-09-07 01:35:11 +00:00