mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-17 23:42:51 +00:00
20 lines
425 B
JavaScript
20 lines
425 B
JavaScript
"use strict";
|
|
|
|
const parse = require("./parse");
|
|
const stringify = require("./stringify");
|
|
|
|
function postcssHtml(config) {
|
|
const syntax = {
|
|
parse: (source, opts) =>
|
|
parse(String(source), { config, syntax, ...(opts || {}) }),
|
|
stringify,
|
|
};
|
|
return syntax;
|
|
}
|
|
|
|
const defaultSyntax = postcssHtml();
|
|
postcssHtml.parse = defaultSyntax.parse;
|
|
postcssHtml.stringify = defaultSyntax.stringify;
|
|
|
|
module.exports = postcssHtml;
|