0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

Merge branch 'master' into conditional-submission

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-05-12 03:11:40 +05:30
Commit 8c61b9b1f3

Datei anzeigen

@ -1,8 +1,17 @@
import loadScript from "./load-script";
import { default as PrettyText } from "pretty-text/pretty-text";
import { default as PrettyText, buildOptions } from "pretty-text/pretty-text";
import Handlebars from "handlebars";
import getURL from "discourse-common/lib/get-url";
import { getOwner } from "discourse-common/lib/get-owner";
export function cook(text, options) {
if (!options) {
options = buildOptions({
getURL: getURL,
siteSettings: getOwner(this).lookup("site-settings:main"),
});
}
return new Handlebars.SafeString(new PrettyText(options).cook(text));
}