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:
parent
726d97b29d
commit
c36ae17260
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue