You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a Jinja novice, if I have a template with some markdown referenced by Javascript variable, how do I style it?
Presumably, the plugin can't handle that?
The example in the docs shows how to style literal markdown, but one likely use case is trying to style markdown retrieved by by a SQL query request to the datasette API? The javascript variable is undefined if called naively as {{render_markdown(md)}}. Is there a way to write the query with a function that takes markdown and returns HTML, eg select render_markdown(md) from etc.
The text was updated successfully, but these errors were encountered:
As a Jinja novice, if I have a template with some markdown referenced by Javascript variable, how do I style it?
Presumably, the plugin can't handle that?
The example in the docs shows how to style literal markdown, but one likely use case is trying to style markdown retrieved by by a SQL query request to the datasette API? The javascript variable is undefined if called naively as
{{render_markdown(md)}}
. Is there a way to write the query with a function that takes markdown and returns HTML, egselect render_markdown(md) from etc
.The text was updated successfully, but these errors were encountered: