-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Table type (prefix ^) that doesn't parse wikiwords, links and emailadresses * Added acceptance test that shows no links are generated in a NoLinksTable
- Loading branch information
Showing
5 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,29 @@ | |
|Response Examiner.| | ||
|type|pattern|matches?| | ||
|contents|!-''italic''-!|true| | ||
# | ||
|
||
|
||
'''Test that wikiwords, http links and e-mail adresses don't get interpreted inside no-links tables.''' | ||
|script | | ||
|start|Page Builder | | ||
|line |!-^|WikiWord|https://localhost|[email protected]|-!| | ||
|page |!-TableTestPageFour-! | | ||
# | ||
# | ||
|Response Requester. | | ||
|uri |valid?|contents?| | ||
|!-TableTestPageFour-!|true | | | ||
# | ||
# | ||
|Response Examiner. | | ||
|type |pattern |matches?|wrapped html?| | ||
|contents|!-<td>WikiWord</td>-!|true | | | ||
# | ||
|Response Examiner. | | ||
|type |pattern |matches?| | ||
|contents|!-WikiWord<a title="create page" href="WikiWord?edit&nonExistent=true">[?]</a>-!|false | | ||
|contents|!-<td>https://localhost</td>-! |true | | ||
|contents|!-<a href="https://localhost">https://localhost</a>-! |false | | ||
|contents|!-<td>[email protected]</td>-! |true | | ||
|contents|!-<a href="mailto:[email protected]">[email protected]</a>-! |false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,20 @@ If you don't want any markup directives interpreted in the table, then you can u | |
|!1 like a literal|--and is especially useful--|''for test tables.''| | ||
|^SinceTheyTend| * to have WikiWord symbols in them.| | ||
|
||
!2 No Link Generating tables | ||
If you don't want Wikiwords, URL's or E-mail adresses interpreted in the table, but you do want symbols like !-!today-! interpreted, then you can use a special form where your table is preceded with a ^ character: | ||
'''Markup Text''' | ||
{{{^|ThisTableWillExclude|WikiWords, http://links|and [email protected] | | ||
|from being parsed, |however |''it will respect formatting''| | ||
|and parse symbols like !-!today (yyyyMMdd)-! |}}} | ||
'''Displays as:''' | ||
^|ThisTableWillExclude|WikiWords, http://links|and [email protected] | | ||
|from being parsed, |however |''it will respect formatting''| | ||
|and parse symbols like !today (yyyyMMdd) | | ||
|
||
!2 Hidden table heads | ||
You can hide the first row of a table. This allows you to write comment tables that just look like ordinary HTML tables. | ||
The complete table still gets executed, the first row is just hidden by a CSS rule. | ||
The complete table still gets executed, the first row is just hidden by a CSS rule. | ||
Precede the first row with a '-'. This also works for literal tables. | ||
|
||
'''Markup Text''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters