mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
6b14969cf6
The base64 data is currently parsed as wikitext, which is slow and unhelpful We already display the same warning for binary tiddlers in edit mode.
30 lines
562 B
JavaScript
30 lines
562 B
JavaScript
/*\
|
|
title: $:/core/modules/parsers/binaryparser.js
|
|
type: application/javascript
|
|
module-type: parser
|
|
|
|
The video parser parses a video tiddler into an embeddable HTML element
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
var BINARY_WARNING_MESSAGE = "$:/core/ui/BinaryWarning";
|
|
|
|
var BinaryParser = function(type,text,options) {
|
|
this.tree = [{
|
|
type: "transclude",
|
|
attributes: {
|
|
tiddler: {type: "string", value: BINARY_WARNING_MESSAGE}
|
|
}
|
|
}];
|
|
};
|
|
|
|
exports["application/octet-stream"] = BinaryParser;
|
|
|
|
})();
|
|
|