1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 11:00:27 +00:00
TiddlyWiki5/core/modules/parsers/fontparser.js

29 lines
486 B
JavaScript
Raw Normal View History

/*\
title: $:/core/modules/parsers/fontparser.js
type: application/javascript
module-type: parser
The font parser parses fonts into URI encoded base64
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var FontParser = function(type,text,options) {
this.tree = [{
type: "element",
tag: "span",
children: [
{type: "text", text: "data:" + type + ";base64," + text}
]
}];
};
exports["application/font-woff"] = FontParser;
})();