PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki

Transforms Wiki and BBCode markup into XHTML, LaTeX or plain text markup. This is the base engine for all of the Text_Wiki sub-classes.

This package is unmaintained.

Download latest release 1.2.3 (archived versions might be outdated)

License: LGPL

Description

The text transformation is done in 2 steps.
The chosen parser uses markup rules to tokenize the tags and content.
Renderers output the tokens and text into the requested format.
The tokenized form replaces the tags by a protected byte value associated to an index in an options table. This form shares up to 50 rules by all parsers and renderers.
The package is intented for versatile transformers as well as converters.
Text_Wiki is delivered with its own parser, which is used by Yawiki or Horde's Wicked and three basic renderers: XHTML , LaTeX and plain text.
Strong sanitizing of XHTML is default.
Parsers (* and Renderers) exist for BBCode, Cowiki (*), Dokuwiki (*), Mediawiki and Tikiwiki (*).
It is highly configurable and can be easily extended.

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#843ClosedBug2004-02-23Applying wiki rules a second time fails
#914ClosedBug2004-02-26Token error with two http:// marked up lines.
#927ClosedBug2004-02-29two bugs with paragraphs
#1093ClosedBug2004-03-30E_ALL error parsing simple text.
#1105ClosedBug2004-03-31homepage link not set on pearweb
#1106ClosedBug2004-03-31view_url take sprintf formating.
#1164ClosedBug2004-04-08CVS link missing
#1316BogusBug2004-04-29Adding a new rule messes up php strings
#1362ClosedBug2004-05-07accented letters not translated to HTML entities
#1384ClosedBug2004-05-11list rule inaccurate
#1465ClosedBug2004-05-21<code> block eleminates leading spaces
#1476ClosedBug2004-05-23Problem with blockquote rendering
#1564ClosedBug2004-06-06insertRule() doesn't work when second argument is supplied
#1571ClosedBug2004-06-07include rule has parse error
#1573ClosedBug2004-06-07embed render xhtml has error
#1578ClosedBug2004-06-08item list followed by bold problem
#1616ClosedBug2004-06-11blockquote depth parsed incorrectly at start
#1628ClosedBug2004-06-13& are not converted in links
#1709ClosedBug2004-06-23anchor's not being displayed properly
#1722ClosedBug2004-06-25Impossible To Use Two Text_Wiki Instances At The Same Time
#1729ClosedBug2004-06-27With the new Anchor parsing ColorText is not shown
#1736BogusBug2004-06-28XHTML Compliance Problem
#1801ClosedReq2004-07-05toc2: counts + after call
#1820BogusBug2004-07-07<php></php> function dose not work
#2095ClosedBug2004-08-09Render/Xhtml/Deflist.php ignoring class configuration
#2096ClosedBug2004-08-09Render/Xhtml/Code.php prints <code> tags incorrectly
#2188ClosedBug2004-08-22Interwiki: Wrong handling of german Umlauts
#2190Wont fixReq2004-08-22Google Search facility
#2316ClosedBug2004-09-12Center tag is broken
#2317ClosedReq2004-09-12Reorder Rules at runtime
#2340ClosedBug2004-09-15chars in foreign language are damaged
#2419ClosedBug2004-09-30getParseConf returns null if rule exists
#2670ClosedBug2004-11-01incorrect css_new case
#2715BogusReq2004-11-08Add support for table headings
#2916ClosedBug2004-12-07parser for "code" does not set all attributes
#2947ClosedReq2004-12-11more flexible way to handle wikilinks
#2971ClosedReq2004-12-15allow dot in interwiki rule
#3004ClosedBug2004-12-21Wrong path for rule "image"
#3162ClosedReq2005-01-11Change Interwiki regex to allow for additional punctuation
#3336ClosedBug2005-01-31HTML_SPECIALCHARS translation not taken into account
#3365ClosedReq2005-02-02Enhancing wikilink 'exists' callback
#3387ClosedBug2005-02-05mailto link includes javascript
#3504ClosedBug2005-02-17Tiny bug in Parse/Strong
#3579ClosedReq2005-02-24Add 'subscript' rule
#3661BogusBug2005-03-01FilterChain
#3805FeedbackReq2005-03-14Assigning at once a css class name to all html tags
#3881ClosedBug2005-03-19utf-8 encoding problem
#3959ClosedBug2005-03-25XHTML lists not rendered according W3C Standards
#4175ClosedBug2005-04-18Wrong transform method
#4230AssignedReq2005-04-26[Patch] Use Text_Highlighter in "code" rule
#4291OpenReq2005-05-05Allow formatting inside WikiLinks descriptions
#4294ClosedReq2005-05-06Move TOC heading rendering to renderer
#4436ClosedReq2005-05-25Add option to getTokens to get original token indices
#4442BogusBug2005-05-26UTF-8 encoded text is translated to ISO-Latin-1 entities
#4473ClosedBug2005-05-30Undefined variables in error()
#4474ClosedBug2005-05-30Silence htmlspecialchars() calls
#4520ClosedReq2005-06-03Additional space confuses image tag
#4634ClosedReq2005-06-19Code block title/filename
#4719ClosedBug2005-06-30In Latex, newline rule does not produce a new line
#5185BogusBug2005-08-23Problems with rules set in constructor
#5397ClosedBug2005-09-14variable used inside single quotes
#5447ClosedBug2005-09-18Undefined variable: collapse
#5660ClosedBug2005-10-11bug in anchor parsing
#5847ClosedBug2005-11-01Interwiki XHTML Validation Fails
#5861DuplicateBug2005-11-03warning on headings
#5863ClosedBug2005-11-04mixed <ul> <ol> when using * and #
#5879ClosedBug2005-11-06Nested lists to do not parse properly in Text_Wiki
#5953ClosedBug2005-11-14£-sign doesn't get converted to £ in links
#6010ClosedBug2005-11-18reference E_NOTICE in Render/Xhtml/Wikilink.php line 73 with 1.0.3
#6072No FeedbackBug2005-11-25Parse/List.php pb width count number
#6133AssignedReq2005-12-02Add support for PDF rendering
#6292ClosedBug2005-12-19headings and hr are incorrectly nested in p-tags
#6556DuplicateBug2006-01-23Hard code 'htmlentities' in Render/Xhtml/Code.php
#7003ClosedBug1.1.02006-03-02PEAR class is used without being required
#7091ClosedBug1.1.02006-03-10Variable Substitution Bug
#7094ClosedBug1.1.02006-03-11Freelinks links appears urlencoded (Xhtml renderer)
#7320ClosedBug1.1.02006-04-05Wikilinks messed when using international characters
#7383BogusBugCVS2006-04-12can not encode Multibyte String correctly with XHTML render
#7451No FeedbackBug1.1.02006-04-21Segmentation fault (11) in Apache Log if the Text_wiki interprets Text
#7619OpenReq1.1.02006-05-13Titles for lists
#7717OpenReq1.1.02006-05-24Image renderer: Remove getimagesize call or make it optional
#7725Wont fixBug1.1.02006-05-25Freelink renderer is not pulling in configuration for wikilink renderer
#7754OpenReq1.1.02006-05-29ignorant urlEncode
#7847ClosedBug1.1.02006-06-09raw markup rule allows XSS
#7929OpenReq1.1.02006-06-16Image should support same link style as wikilink
#8190OpenReqCVS2006-07-11TOC enclosing block fix
#8313ClosedBugCVS2006-07-28Link anchors should always append to link string
#8482OpenReq1.1.02006-08-16HTML Code surrounded by <p>
#8502OpenReqCVS2006-08-18XHTML renderer needs id encoder
#8726BogusBug1.1.02006-09-18Script crashes while using <code>
#8975Wont fixBug1.2.0RC12006-10-11###EE22FF|text## causes delimter to show in output
#9271OpenReq1.1.02006-11-08Create a media descriptor
#9382OpenReq1.1.02006-11-19Don't add class="" if no css style given
#9384OpenReq1.1.02006-11-19Don't add empty anchor # sign
#9585BogusBug1.2.0RC12006-12-08BC break with Wikilink renderer
#10015OpenReq1.2.0RC12007-02-02static toc margin
#10114ClosedBug1.1.02007-02-16Ruleset Case Sensitivity
#10128ClosedReq2007-02-19deprecated align attribute
#10388No FeedbackDoc1.1.02007-03-15Lack of appreciable documentation and an offer of assistance
#10682BogusBug1.1.02007-04-10Text_Wiki not multi-byte safe
#11158BogusReq1.1.02007-05-26Code Parser not works if the char berfore </code> isn't \n
#11262ClosedBug1.2.0RC22007-06-09Doesn't behave nicely with <code type="php">
#11324BogusBug1.2.02007-06-15Strict compliance
#11331OpenReq1.2.02007-06-16Linking to images impossible
#11649ClosedBug1.2.02007-07-20New Code regex fails
#11915No FeedbackBug1.2.02007-08-28Text_Wiki doesn't work properly with some autoloaders
#12098No FeedbackBug1.2.02007-09-22Code tag kills php process (child pid 14456 exit signal Illegal instruction (4)
#12163Wont fixReq1.2.02007-10-01Xhtml tables lack summary attribute
#12164OpenBug1.2.02007-10-01Closing italic // just after a column : doesn't render correctly
#12298FeedbackReq1.2.02007-10-22'Native" letter problem
#12490ClosedBugCVS2007-11-20wiki's do not display since php5-5.2.5 upgrade but are editable.
#12567FeedbackReq1.2.02007-12-02XHTML rendering of Toc using nested <ul>s
#12569ClosedReq1.2.02007-12-02Adding 'base_url' to XHTML Toc renderer
#12580ClosedBug1.2.02007-12-02incorrect/incomplete license in package.xml
#12619ClosedBug1.2.02007-12-05Tab character before # causes invalid Xhtml
#12665ClosedDoc1.2.02007-12-11External site documentation link invalid
#12714DuplicateDoc2007-12-17User note that is a documentation problem
#12715DuplicateDoc2007-12-17User note that is a documentation problem
#12717DuplicateDoc2007-12-18User note that is a documentation problem
#12719ClosedBug1.2.02007-12-18Blockquote parsing bugs
#12722ClosedBug1.2.02007-12-18HTML Blockquote compliance
#12737DuplicateDoc2007-12-20User note that is a documentation problem
#12738DuplicateDoc2007-12-20User note that is a documentation problem
#12809DuplicateDoc1.2.02008-01-02External link to Full Documentation => Not Found Error
#13136DuplicateBug1.2.02008-02-17PHP 5.2.5 breaks Text_Wiki due to new htmlentities() behaviour
#13194OpenBugCVS2008-02-25Dash not allowed in wiki links in DokuWiki
#13195OpenBugCVS2008-02-25DokuWiki: Link with descriptive text in table not working
#13274DuplicateBug2008-03-01Xhtml renderer appends "#" to each link
#13378DuplicateBug1.2.02008-03-12XHTML PARSING ERROR
#13742DuplicateDoc1.2.02008-04-22Missing doc
#13947BogusDoc1.2.02008-05-20enduser documentation
#14049ClosedDoc1.2.02008-06-02Missing documentation
#14401OpenReqCVS2008-07-24Improve handling of rendering errors
#14604ClosedBug1.2.02008-09-05Unresolved dependency in Text_Wiki_Render_Latex_Freelink
#14869ClosedReqCVS2008-10-25skip tests when config is not available, not fail
#14898OpenReqCVS2008-10-27Improve PHPCS results
#15205OpenReqCVS2008-12-02javascript: links in wiki
#15385AnalyzedBug1.2.02008-12-23special characters are converted to % and break sprintf
#15758ClosedBug1.2.02009-01-24URLs with # at the end not considered a url
#16222ClosedDoc1.2.02009-05-12External documentation is down
#16321BogusBugCVS2009-06-12Problem with backslash in docs/test_Text_Wiki.php
#16339BogusBugCVS2009-06-18Static variable $id in addToken() should be a instance variable
#16395FeedbackReq1.2.02009-07-01Allow line breaks in list items
#16523OpenBugCVS2009-08-14Problem with headings when transforming from Mediawiki to Tikiwiki
#17437BogusBugSVN2010-05-25Deprecated: Assigning the return value of new by reference
#17534BogusReqSVN2010-06-29Make use of $parseConf
#18012OpenReq1.2.12010-10-29Headings Collapse Incomplete
#18115OpenBug1.2.12010-12-14Chinese problem!
#18289ClosedBugSVN2011-02-21List not properly parsed
#18775OpenDoc1.2.12011-09-02broken link to wishlist
#18776OpenDoc1.2.12011-09-02End-user Documentation
#18777Wont fixReq1.2.12011-09-02new rule for div
#18817No FeedbackBug1.2.12011-09-08Incorrect rendering of Function rule
#18831No FeedbackBug1.2.12011-09-13Mediawiki: <nowiki> combined with <code> doesn't work
#18858OpenBug1.2.12011-09-22enduser documentation not avaiable
#18914FeedbackBug2011-10-18Forcing links doesn't work when description contains non-ascii characters
#19028ClosedBugSVN2011-11-14remove error_reporting (for PEAR QA team)
#20074OpenBug1.2.12013-09-25Unordered lists not working as expected
#20110ClosedBug1.2.12013-11-04package.xml does not validate
#20274ClosedReq2014-05-16Please Provides LICENSE file
#23780OpenBug2018-12-05Online Manual
#23789OpenBug1.2.12019-03-12"Undefined offset: 2" error on line 1324
#23790DuplicateBug1.2.12019-03-12Undefined offset: 2 in /usr/share/php/Text/Wiki.php
#23791DuplicateBug1.2.12019-03-12Undefined offset: 2 in /usr/share/php/Text/Wiki.php