Closed (won't fix)
Project:
Wiki
Version:
2.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2005 at 01:19 UTC
Updated:
9 Nov 2020 at 21:55 UTC
Jump to comment: Most recent
Strikethough wiki filtering is used by some wiki applications and particularly useful when indicating modifications or completed tasks.
After looking at various wikis with strikethrough syntax, it is common to indicate strikethrough text with the use of '-' on both sides of text a user wishes to strike.
Is there interest in adding strikethrough syntax to this module, perhaps with the following?
// strikethrough
$tmpline = preg_replace("|(-)(.*?)(-)|",
"<strike>\\2</strike>", $tmpline);
Comments
Comment #1
veridicus commentedGood idea. I'll look into adding something that generates a DEL tag (S and STRIKE are deprecated in HTML4.01 and XHTML 1.0)
Comment #2
carl ditzler commentedA discussion on the dokuwiki about strikethrough syntax is interesting. Comments on Dokuwiki supported use of a single-hyphen for strikethrough, through Dokuwiki selected
<del>for wiki markup. I'm not sure agree, personally, with having wiki markup the same as XHTML markup, by selecting<del>. Wiki syntax is generally not the same as HTML or XHTML markup; part of the objective of wiki syntax is to offer a user with syntax friendlier than HTML/XHTML.Comment #3
carl ditzler commentedReading through the Dokuwiki discussion, there is mention of addiing
<ins>with<del>. Makes sense. Perhaps this would be a companion with strikethrough?Comment #4
veridicus commentedThe STRIKE (and S) tag is officially leaving HTML. So I won't output it because it'll break HTML/XHTML strict compatibility for many sites (most new themes are being written XHTML 1.0 Strict). DEL is more descriptive and anyone can change their CSS to make it display text as strike-through if not done automatically.
I plan on using one or two hyphens on both side of phrases to tag them DEL. I will never use html-like tags for wiki text because it defeats the purpose of using it. Also I want all HTML output as is so it can be easily displayed to readers just like code.
Comment #5
highermath commentedObsolete