From c36ae17260af86ce50c253f65884d0e206949db7 Mon Sep 17 00:00:00 2001 From: Artem Vasiliev Date: Wed, 12 Feb 2020 22:26:04 +0300 Subject: [PATCH] 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 --- app/assets/javascripts/discourse/lib/render-tag.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/render-tag.js.es6 b/app/assets/javascripts/discourse/lib/render-tag.js.es6 index eed6efddd66..f9230f0255d 100644 --- a/app/assets/javascripts/discourse/lib/render-tag.js.es6 +++ b/app/assets/javascripts/discourse/lib/render-tag.js.es6 @@ -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();