Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tiptapy/templates/marks/highlight.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mark>{{text}}</mark>
1 change: 1 addition & 0 deletions tiptapy/templates/marks/strike.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<s>{{text}}</s>
6 changes: 6 additions & 0 deletions tiptapy/templates/marks/textStyle.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{%- set attr_s = mark.attrs.get("textClass") -%}
{%- if attr_s -%}
<span class="{{ attr_s }}">{{ text }}</span>
{%- else -%}
<span>{{ text }}</span>
{%- endif -%}
16 changes: 16 additions & 0 deletions tiptapy/templates/table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<table{{ extract_tag_attrs(node) }}>
{%- for item in node.content if item.content[0].type == "tableHeader" -%}
<thead>
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
{%- endwith -%}
</thead>
{%- endfor -%}
<tbody>
{%- for item in node.content if item.content[0].type != "tableHeader" -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
{%- endwith -%}
{%- endfor -%}
</tbody>
</table>
7 changes: 7 additions & 0 deletions tiptapy/templates/tableCell.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<td>
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
{%- endwith -%}
{%- endfor -%}
</td>
7 changes: 7 additions & 0 deletions tiptapy/templates/tableHeader.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<th>
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
{%- endwith -%}
{%- endfor -%}
</th>
7 changes: 7 additions & 0 deletions tiptapy/templates/tableRow.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<tr{{ extract_tag_attrs(node) }}>
{%- for item in node.content -%}
{%- with template=item.type + '.html', node=item -%}
{%- include template -%}
{%- endwith -%}
{%- endfor -%}
</tr>