Lines Matching refs:text

59 function Markdown(text) {  argument
71 return parser.transform(text);
199 Markdown_Parser.prototype.__wrapSTXETX__ = function(text) { argument
200 if(text.charAt(0) != '\x02') { text = '\x02' + text; }
201 if(text.charAt(text.length - 1) != '\x03') { text = text + '\x03'; }
202 return text;
209 Markdown_Parser.prototype.__unwrapSTXETX__ = function(text) { argument
210 if(text.charAt(0) == '\x02') { text = text.substr(1); }
211 if(text.charAt(text.length - 1) == '\x03') { text = text.substr(0, text.length - 1); }
212 return text;
218 Markdown_Parser.prototype._php_preg_quote = function(text) { argument
222 return text.replace(arguments.callee.sRE, '\\$1');
279 Markdown_Parser.prototype.transform = function(text) { argument
283 text = text.replace(/^\xEF\xBB\xBF|\x1A/, "");
287 text = text.replace(/\r\n?/g, "\n", text);
290 text += "\n\n";
293 text = this.detab(text);
296 text = this.hashHTMLBlocks(text);
302 text = text.replace(/^[ ]+$/m, "");
308 text = method.call(this, text);
317 return text + "\n";
320 Markdown_Parser.prototype.hashHTMLBlocks = function(text) { argument
321 if(this.no_markup) { return text; }
456 text = this.__wrapSTXETX__(text);
457 text = text.replace(all, function(match, text) { argument
459 var key = self.hashBlock(text);
462 text = this.__unwrapSTXETX__(text);
463 return text;
476 Markdown_Parser.prototype.hashPart = function(text, boundary) { argument
482 text = this.unhash(text);
489 this.html_hashes[key] = text;
496 Markdown_Parser.prototype.hashBlock = function(text) { argument
497 return this.hashPart(text, 'B');
504 Markdown_Parser.prototype.stripLinkDefinitions = function(text) { argument
508 text = this.__wrapSTXETX__(text);
509 text = text.replace(new RegExp(
539 text = this.__unwrapSTXETX__(text);
540 return text;
546 Markdown_Parser.prototype.runBlockGamut = function(text) { argument
552 text = this.hashHTMLBlocks(text);
553 return this.runBasicBlockGamut(text);
561 Markdown_Parser.prototype.runBasicBlockGamut = function(text) { argument
565 text = method.call(this, text);
572 text = this.formParagraphs(text);
573 return text;
579 Markdown_Parser.prototype.doHorizontalRules = function(text) { argument
581 return text.replace(new RegExp(
599 Markdown_Parser.prototype.runSpanGamut = function(text) { argument
603 text = method.call(this, text);
609 return text;
615 Markdown_Parser.prototype.doHardBreaks = function(text) { argument
617 return text.replace(/ {2,}\n/mg, function(match) {
627 Markdown_Parser.prototype.doAnchors = function(text) { argument
628 if (this.in_anchor) return text;
674 var cheatText = text.replace(/[^\[^\]^\n^\s]/gm, '');
676 text = text.replace(new RegExp(
701 cheatText = text.replace(/[^\(^\)^\[^\]^\s]/gm, '').replace(/\(.*?\)/,'()');
703 text = text.replace(new RegExp(
751 text = text.replace(new RegExp(
761 return text;
767 Markdown_Parser.prototype.doImages = function(text) { argument
773 cheatText = text.replace(/[^!^\[^\]^\n^\s]/gm, '').replace(/\[\s*\]/g, '[]');
775 text = text.replace(new RegExp(
824 cheatText = text.replace(/[^!^\(^\)^\[^\]^\n^\s]/gm, '').replace(/\[\s*\]/g, '[]');
826 text = text.replace(new RegExp(
866 return text;
869 Markdown_Parser.prototype.doHeaders = function(text) { argument
878 text = text.replace(/^(.+?)[ ]*\n(=+|-+)[ ]*\n+/mg, function(match, span, line) {
896 text = text.replace(new RegExp(
911 return text;
917 Markdown_Parser.prototype.doLists = function(text) { argument
978 text = this.__wrapSTXETX__(text);
980 text = text.replace(new RegExp('^' + whole_list_re, "mg"), _doLists_callback);
983 text = text.replace(new RegExp(
988 text = this.__unwrapSTXETX__(text);
991 return text;
1070 Markdown_Parser.prototype.doCodeBlocks = function(text) { argument
1072 text = this.__wrapSTXETX__(text);
1073 text = text.replace(new RegExp(
1098 text = this.__unwrapSTXETX__(text);
1099 return text;
1141 Markdown_Parser.prototype.doItalicsAndBold = function(text) { argument
1160 var parts = text.match(token_re); //PREG_SPLIT_DELIM_CAPTURE
1176 text = right;
1179 text_stack[0] += text;
1181 text = '';
1287 Markdown_Parser.prototype.doBlockQuotes = function(text) { argument
1289 text = text.replace(new RegExp(
1316 return text;
1323 Markdown_Parser.prototype.formParagraphs = function(text) { argument
1326 text = this.__wrapSTXETX__(text);
1327 text = text.replace(/(?:\x02)\n+|\n+(?:\x03)/g, "");
1328 text = this.__unwrapSTXETX__(text);
1336 var grafs = text.split(/\n{2,}/m);
1407 Markdown_Parser.prototype.encodeAttribute = function(text) { argument
1408 text = this.encodeAmpsAndAngles(text);
1409 text = text.replace(/"/g, '"');
1410 return text;
1418 Markdown_Parser.prototype.encodeAmpsAndAngles = function(text) { argument
1420 text = text.replace(/&/g, '&');
1424 text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/, '&');
1427 text = text.replace(/</g, '&lt;');
1429 return text;
1432 Markdown_Parser.prototype.doAutoLinks = function(text) { argument
1434 text = text.replace(/<((https?|ftp|dict):[^'">\s]+)>/i, function(match, address) {
1442 text = text.replace(new RegExp(
1466 return text;
1555 var text = chars.splice(7, chars.length - 1).join(''); // text without `mailto:`
1556 addr = "<a href=\"" + addr + "\">" + text + "</a>";
1649 Markdown_Parser.prototype.outdent = function(text) { argument
1650 return text.replace(new RegExp('^(\\t|[ ]{1,' + this.tab_width + '})', 'mg'), '');
1661 Markdown_Parser.prototype.detab = function(text) { argument
1666 return text.replace(/^.*\t.*$/mg, function(line) {
1685 Markdown_Parser.prototype.unhash = function(text) { argument
1687 return text.replace(/(.)\x1A[0-9]+\1/g, function(match) {
1827 MarkdownExtra_Parser.prototype.hashHTMLBlocks = function(text) { argument
1831 var r = this._hashHTMLBlocks_inMarkdown(text);
1832 text = r[0];
1834 return text;
1862 MarkdownExtra_Parser.prototype._hashHTMLBlocks_inMarkdown = function(text, indent, enclosing_tag_re… argument
1867 if(text === '') { return ['', '']; }
1939 var parts_available = text.match(block_tag_re); //PREG_SPLIT_DELIM_CAPTURE
1942 parts = [text];
1960 text = "";
1965 text = parts[2]; // Remaining text after current tag.
1977 if (matches = text.match(new RegExp('^((?=(.+?|\\n[^\\n])))/1*?[^`]' + tag_re + '[^`]'))) {
1980 text = text.substr(matches[0].length);
1993 … if(matches = text.match(new RegExp('^(?:.*\\n)+?[ ]{0,' + indent + '}' + tag_re + '[ ]*\\n'))) {
1996 text = text.substr(matches[0].length);
2020 text.match(newline_after_re)
2024 t = this._hashHTMLBlocks_inHTML(tag + text, this.hashBlock, true);
2026 text = t[1];
2041 t = this._hashHTMLBlocks_inHTML(tag + text, this.hashClean, false);
2043 text = t[1];
2065 text = tag + text;
2076 return [parsed, text];
2089 MarkdownExtra_Parser.prototype._hashHTMLBlocks_inHTML = function(text, hash_method, md_attr) { argument
2090 if(text === '') return ['', ''];
2134 var original_text = text; // Save original text in case of faliure.
2145 if(matches = text.match(/^<([\w:$]*)\b/)) {
2159 var parts_available = text.match(tag_re); //PREG_SPLIT_DELIM_CAPTURE);
2174 text = parts[2]; // Remaining text after current tag.
2231 var t = this._hashHTMLBlocks_inMarkdown(text, indent, tag_name_re, span_mode);
2233 text = t[1];
2259 return [parsed, text];
2268 MarkdownExtra_Parser.prototype.hashClean = function(text) { argument
2269 return this.hashPart(text, 'C');
2276 MarkdownExtra_Parser.prototype.doHeaders = function(text) { argument
2291 text = text.replace(new RegExp(
2314 text = text.replace(new RegExp(
2331 return text;
2337 MarkdownExtra_Parser.prototype.doTables = function(text) { argument
2369 var text = "<table>\n";
2370 text += "<thead>\n";
2371 text += "<tr>\n";
2374 text += " <th" + attr[n] + ">" + self.runSpanGamut(self._php_trim(header)) + "</th>\n";
2376 text += "</tr>\n";
2377 text += "</thead>\n";
2382 text += "<tbody>\n";
2393 text += "<tr>\n";
2396text += " <td" + attr[n] + ">" + self.runSpanGamut(self._php_trim(cell)) + "</td>\n";
2398 text += "</tr>\n";
2400 text += "</tbody>\n";
2401 text += "</table>";
2403 return self.hashBlock(text) + "\n";
2406 text = this.__wrapSTXETX__(text);
2416 text = text.replace(new RegExp(
2448 text = text.replace(new RegExp(
2465 text = this.__unwrapSTXETX__(text);
2467 return text;
2473 MarkdownExtra_Parser.prototype.doDefLists = function(text) { argument
2515 text = this.__wrapSTXETX__(text);
2516 text = text.replace(new RegExp(
2530 text = this.__unwrapSTXETX__(text);
2532 return text;
2564 var text = '';
2568 text += "\n<dt>" + term + "</dt>";
2570 return text + "\n";
2619 MarkdownExtra_Parser.prototype.doFencedCodeBlocks = function(text) { argument
2624 text = this.__wrapSTXETX__(text);
2625 text = text.replace(new RegExp(
2654 text = this.__unwrapSTXETX__(text);
2656 return text;
2663 MarkdownExtra_Parser.prototype.formParagraphs = function(text) { argument
2666 text = this.__wrapSTXETX__(text);
2667 text = text.replace(/(?:\x02)\n+|\n+(?:\x03)/g, "");
2668 text = this.__unwrapSTXETX__(text);
2670 var grafs = text.split(/\n{2,}/m);
2696 text = grafs.join("\n\n");
2699 text = this.unhash(text);
2701 return text;
2710 MarkdownExtra_Parser.prototype.stripFootnotes = function(text) { argument
2716 text = text.replace(new RegExp(
2736 return text;
2743 MarkdownExtra_Parser.prototype.doFootnotes = function(text) { argument
2745 text = text.replace(/\[\^(.+?)\]/g, "F\x1Afn:$1\x1A:");
2747 return text;
2753 MarkdownExtra_Parser.prototype.appendFootnotes = function(text) { argument
2790 text = text.replace(/F\x1Afn:(.*?)\x1A:/g, _appendFootnotes_callback);
2793 text += "\n\n";
2794 text += "<div class=\"footnotes\">\n";
2795 text += "<hr" + this.empty_element_suffix + "\n";
2796 text += "<ol>\n\n";
2831 text += "<li id=\"fn:" + note_id + "\">\n";
2832 text += footnote + "\n";
2833 text += "</li>\n\n";
2836 text += "</ol>\n";
2837 text += "</div>";
2839 return text;
2847 MarkdownExtra_Parser.prototype.stripAbbreviations = function(text) { argument
2853 text = text.replace(new RegExp(
2865 return text;
2871 MarkdownExtra_Parser.prototype.doAbbreviations = function(text) { argument
2877 text = text.replace(new RegExp(
2895 return text;