FEATURE: export defaultRenderTag function (#8941)

* FEATURE: export defaultRenderTag function

This can be helpful for plugins e.g. when combined with replaceTagRenderer: a plugin may want to customize rendering for some tags and let others be rendered with default code

* refactor: don't change version

..as per review comment, https://github.com/discourse/discourse/pull/8941#discussion_r378406809
This commit is contained in:
Artem Vasiliev 2020-02-12 22:26:04 +03:00 committed by GitHub
parent 726d97b29d
commit c36ae17260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export function replaceTagRenderer(fn) {
_renderer = fn;
}
function defaultRenderTag(tag, params) {
export function defaultRenderTag(tag, params) {
params = params || {};
const visibleName = Handlebars.Utils.escapeExpression(tag);
tag = visibleName.toLowerCase();