aboutsummaryrefslogtreecommitdiffstats
path: root/docs/collect.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/collect.js')
-rw-r--r--docs/collect.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/collect.js b/docs/collect.js
index 4665133d..30597862 100644
--- a/docs/collect.js
+++ b/docs/collect.js
@@ -142,12 +142,12 @@ function escapedHtmlTag(doc, name, value) {
function markdownTag(doc, name, value) {
doc[name] = markdown(value.replace(/^#/gm, '##')).
- replace(/\<pre\>/gmi, '<div ng:non-bindable><pre class="brush: js; html-script: true; toolbar: false;">').
+ replace(/\<pre\>/gmi, '<div ng:non-bindable><pre class="brush: js; html-script: true;">').
replace(/\<\/pre\>/gmi, '</pre></div>');
}
function markdown(text) {
- var parts = text.split(/(<pre>[\s\S]*<\/pre>)/);
+ var parts = text.split(/(<pre>[\s\S]*?<\/pre>)/);
parts.forEach(function(text, i){
if (!text.match(/^<pre>/)) {
text = text.replace(/<angular\/>/gm, '<tt>&lt;angular/&gt;</tt>');