"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = exports.HtmlSandbox = void 0;function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}



class HtmlSandbox {


  constructor(reporter, rootPath) {_defineProperty(this, "rootPath", void 0);_defineProperty(this, "reporter", void 0);
    this.rootPath = rootPath;
    this.reporter = reporter;
  }

  async run(code, hash, lang, meta) {
    if (lang !== 'html') {
      return false;
    }
    this.reporter.output(hash, 'text/html', code);
    return true;
  }}exports.HtmlSandbox = HtmlSandbox;


const plugin = () => {
  return {
    name: 'HTML',
    sandbox: async (reporter, rootPath) => new HtmlSandbox(reporter, rootPath) };

};var _default =

plugin;exports.default = _default;