From 4491bbdede825df78302301d4689dd73bcf9c256 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 17 Nov 2010 15:09:19 -0800 Subject: docs linkifying regexp should not mess up links alreaded converete by markdown --- docs/collect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/collect.js b/docs/collect.js index aa16490b..a4db4ed1 100644 --- a/docs/collect.js +++ b/docs/collect.js @@ -169,7 +169,7 @@ function markdown(text) { if (!text.match(/^
/)) {
text = text.replace(/ /gm, '<angular/>');
text = new Showdown.converter().makeHtml(text);
- text = text.replace(/(angular\.[\$\w\._\-:]+)/gm, '$1');
+ text = text.replace(/[^#][^!](angular\.[\$\w\._\-:]+)/gm, '$1');
text = text.replace(/(`(ng:[\w\._\-]+)`)/gm, '$1');
parts[i] = text;
}
--
cgit v1.2.3