createMentionSpanTemplate

abstract fun createMentionSpanTemplate(type: PermalinkService.SpanTemplateType, forceMatrixTo: Boolean = false): String

Creates a HTML or Markdown mention span template. Can be used to replace a mention with a permalink to mentioned user. Ex: "%2\$s" or "%2\$s"

Return

the created template

Parameters

type

type of template to create

forceMatrixTo

whether we should force using matrix.to base URL