Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a base branch
Nothing to show
...
Choose a head branch
Nothing to show
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 5 additions and 1 deletion.
  1. +0 −1 README.textile
  2. +5 −0 lib/stextile.js
View
@@ -31,7 +31,6 @@ h3. TO-DO
* Benchmarks
* Optimisation
* Attributes for inline elements
-* span with %
* Indentation
h3. Notes
View
@@ -302,6 +302,11 @@ Textile.prototype = {
text = text.replace(/_([^_]*)_(?![^<]*<\/)(?![^<]*>)/g, '<em>$1</em>');
text = text.replace(/\+([^+]*)\+(?![^<]*<\/)(?![^<]*>)/g, '<ins>$1</ins>');
text = text.replace(/\-([^+]*)\-(?![^<]*<\/)(?![^<]*>)/g, '<del>$1</del>');
+ text = text.replace(/\^([^+]*)\^(?![^<]*<\/)(?![^<]*>)/g, '<sup>$1</sup>');
+ text = text.replace(/\~([^+]*)\~(?![^<]*<\/)(?![^<]*>)/g, '<sub>$1</sub>');
+ text = text.replace(/\%([^+]*)\%(?![^<]*<\/)(?![^<]*>)/g, '<span>$1</span>');
+ text = text.replace(/@([^+]*)@(?![^<]*<\/)(?![^<]*>)/g, '<code>$1</code>');
+ text = text.replace(/\?\?([^+]*)\?\?(?![^<]*<\/)(?![^<]*>)/g, '<cite>$1</cite>');
text = this.replaceEntities(text);
return text;

No commit comments for this range