Displaying 1 result from an estimated 1 matches for "bills_word".
Did you mean:
bills_words
2009 Nov 04
2
A Suggestion for Strikethrough Syntax
...=~ s{ (\s) (-) (?=\S) (.+?) (?<=\S) (-) }
{$1<strike>$3</strike>}gsx;
return $text;
}
It converts
-text to be struck through-
to
<strike>text to be struck through</strike>.
Simple, and it works for me.
(I detail it at <http://www.bill.eccles.net/bills_words/2008/07/a-test-entry-with-markdownstri.html
>.)
Thoughts?
/Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20091104/b3da8eba/attachment.html>