UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

19 lines (12 loc) 332 B
"use strict"; const getSyntax = require("./get-syntax"); const patch = require("./patch-postcss"); function parser (source, lang, opts) { patch(); const syntax = getSyntax(lang, opts); const root = syntax.parse(source, opts); root.source.syntax = syntax; root.source.lang = lang; return root; } module.exports = parser;