Render latex using stimulus controller.

This commit is contained in:
Jan Böhmer 2022-03-06 15:49:09 +01:00
parent c54336fb47
commit cef74ff35a
8 changed files with 51 additions and 4 deletions

View file

@ -108,7 +108,7 @@
<div class="tab-content" id="myTabContent">
{% if part.comment is not empty %}
<div class="tab-pane fade show" id="comment" role="tabpanel" aria-labelledby="home-tab">
<div class="container-fluid mt-2 latex">
<div class="container-fluid mt-2 latex" data-controller="common--latex">
{{ part.comment|markdown }}
</div>
</div>

View file

@ -118,7 +118,7 @@
{% if entity.comment is not empty %}
<div class="tab-pane fade" id="v-pills-comment" role="tabpanel" aria-labelledby="home-tab">
<div class="container-fluid mt-2 latex">
<div class="container-fluid mt-2 latex" data-controller="common--latex">
{{ entity.comment|markdown }}
</div>
</div>

View file

@ -129,7 +129,7 @@
<tbody>
{% for param in parameters %}
<tr>
<td>{{ param.name }} {% if param.symbol is not empty %}<span class="latex">${{ param.symbol }}$</span>{% endif %}</td>
<td>{{ param.name }} {% if param.symbol is not empty %}<span class="latex" data-controller="common--latex">${{ param.symbol }}$</span>{% endif %}</td>
<td>{{ param.formattedValue }}</td>
</tr>
{% endfor %}

View file

@ -11,7 +11,7 @@
</h4>
{% if banner is not empty %}
<hr>
<div class="latex">
<div class="latex" data-controller="common--latex">
<h5>{{ banner | markdown }}</h5>
</div>
{% endif %}