mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 08:22:53 +00:00
12 lines
326 B
JavaScript
12 lines
326 B
JavaScript
"use strict";
|
|
|
|
const extract = require("./html/extract-styles");
|
|
const parseStyles = require("./html/parse-styles");
|
|
|
|
module.exports = function parse(source, opts) {
|
|
const document = parseStyles(source, opts, extract(source, opts));
|
|
document.source.lang = "html";
|
|
document.source.syntax = opts.syntax;
|
|
return document;
|
|
};
|