mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Add md template util.
This breaks the _() step out of the existing _md() template util for conveniently inserting markdown that has already been translated.
This commit is contained in:
@@ -601,6 +601,10 @@ ${unsafe(txt)}
|
||||
%endif
|
||||
</%def>
|
||||
|
||||
<%def name="_md(text, wrap=False)">
|
||||
${unsafe(safemarkdown(_(text), wrap=wrap))}
|
||||
<%def name="md(text, wrap=False)">
|
||||
${unsafe(safemarkdown(text, wrap=wrap))}
|
||||
</%def>
|
||||
|
||||
<%def name="_md(text, wrap=False)">
|
||||
${md(_(text), wrap=wrap)}
|
||||
</%def>
|
||||
|
||||
Reference in New Issue
Block a user