render function

String render(
  1. String source, [
  2. RenderOptions? opts
])

The single public API which translates Rimu Markup to HTML.

Implementation

String render(String source, [options.RenderOptions? opts]) {
  opts ??= options.RenderOptions();
  // Lazy first-call API initialisation.
  if (options.safeMode == options.UNDEFINED) {
    document.init();
  }
  options.updateFrom(opts);
  return document.render(source);
}