mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 02:39:42 +00:00
27 lines
507 B
JavaScript
27 lines
507 B
JavaScript
/*\
|
|
title: $:/core/modules/parsers/newwikitextparser/rules/coderun.js
|
|
type: application/javascript
|
|
module-type: wikitextrule
|
|
|
|
Wiki text run rule for code runs
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
exports.name = "coderun";
|
|
|
|
exports.runParser = true;
|
|
|
|
exports.regExpString = "\\{\\{\\{";
|
|
|
|
exports.parse = function(match,isBlock) {
|
|
this.pos = match.index + match[0].length;
|
|
return [$tw.Tree.Element("code",{},this.parseRun(/(\}\}\})/mg))];
|
|
};
|
|
|
|
})();
|