diff --git a/tests/data/html/blockquote.html b/tests/data/html/blockquote.html index 4119cbf..65bd705 100644 --- a/tests/data/html/blockquote.html +++ b/tests/data/html/blockquote.html @@ -1 +1 @@ -

This is a blockquote

\ No newline at end of file +

This is a blockquote

\ No newline at end of file diff --git a/tests/data/html/ordered_list.html b/tests/data/html/ordered_list.html index af4a6d7..528c327 100644 --- a/tests/data/html/ordered_list.html +++ b/tests/data/html/ordered_list.html @@ -1 +1 @@ -

Scroll

  1. One

  2. Two

  3. Three

  1. One

  2. Two

  3. Three

\ No newline at end of file +

Scroll

  1. One

  2. Two

  3. Three

  1. One

  2. Two

  3. Three

\ No newline at end of file diff --git a/tests/data/json/blockquote.json b/tests/data/json/blockquote.json index a0028f5..4688d6a 100644 --- a/tests/data/json/blockquote.json +++ b/tests/data/json/blockquote.json @@ -3,6 +3,9 @@ "content": [ { "type": "blockquote", + "attrs": { + "id": "b-NzgT2MAhuSTnpFyo-E3" + }, "content": [ { "type": "paragraph", diff --git a/tests/data/json/ordered_list.json b/tests/data/json/ordered_list.json index 8839432..94fc909 100644 --- a/tests/data/json/ordered_list.json +++ b/tests/data/json/ordered_list.json @@ -13,7 +13,8 @@ { "type": "ordered_list", "attrs": { - "order": 1 + "order": 1, + "id": "b-NzgT2MAhuSTnpFyo-E3" }, "content": [ { @@ -63,7 +64,8 @@ { "type": "ordered_list", "attrs": { - "start": 2 + "start": 2, + "id": "b-NzgT2MAhuSTnpFyo-E3" }, "content": [ { @@ -71,6 +73,9 @@ "content": [ { "type": "paragraph", + "attrs": { + "id": "b-NzgT2MAhuSTnpFyo-E3" + }, "content": [ { "type": "text", diff --git a/tiptapy/templates/blockquote.html b/tiptapy/templates/blockquote.html index 4261046..dcac980 100644 --- a/tiptapy/templates/blockquote.html +++ b/tiptapy/templates/blockquote.html @@ -1,4 +1,4 @@ -
+ {%- for item in node.content -%} {%- with template=item.type + '.html', node=item -%} {%- include template -%} diff --git a/tiptapy/templates/orderedList.html b/tiptapy/templates/orderedList.html index 4e508c5..1e08f40 100644 --- a/tiptapy/templates/orderedList.html +++ b/tiptapy/templates/orderedList.html @@ -1,7 +1,7 @@ {%- if node.attrs.start -%} -
    +
      {%- else -%} -
        +
          {%- endif -%} {%- for item in node.content -%} {%- with template=item.type + '.html', node=item -%} diff --git a/tiptapy/templates/ordered_list.html b/tiptapy/templates/ordered_list.html index 4e508c5..1e08f40 100644 --- a/tiptapy/templates/ordered_list.html +++ b/tiptapy/templates/ordered_list.html @@ -1,7 +1,7 @@ {%- if node.attrs.start -%} -
            +
              {%- else -%} -
                +
                  {%- endif -%} {%- for item in node.content -%} {%- with template=item.type + '.html', node=item -%}