njk-tool 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13824,7 +13824,7 @@ padding: 6px 16px;
13824
13824
  </div>
13825
13825
  {% endmacro %}
13826
13826
  {% macro title_table_default(ctx) %}
13827
- <div class="njk-title-h3" id="{{ ctx.text }}" class="title_table_default" style="{{ ctx.style }}">
13827
+ <div class="njk-title-h3" id="{{ ctx.text }}">
13828
13828
  {{ ctx.text }}
13829
13829
  </div>
13830
13830
  {% endmacro %}
@@ -13920,10 +13920,11 @@ padding: 6px 16px;
13920
13920
  </table>
13921
13921
  {% endmacro %}
13922
13922
  {% macro use_table(ctx) %}
13923
- {% if ctx.type == "h1" %}
13924
- {{ title_h1(ctx) }}
13923
+ {% if ctx.title %}
13924
+ {{ title_table_default(ctx.title) }}
13925
+ {{ table_default(ctx) }}
13925
13926
  {% else %}
13926
- {{ title_h3(ctx) }}
13927
+ {{ table_default(ctx) }}
13927
13928
  {% endif %}
13928
13929
  {% endmacro %}
13929
13930
  <!-- /Table.njk -->
@@ -14022,9 +14023,6 @@ display: block;
14022
14023
  {% endmacro %}
14023
14024
  <!-- /ContentTitle.njk -->
14024
14025
  <!-- Component.njk -->
14025
- {% macro set_width(ctx) %}
14026
- <div style="width:{{ ctx.width }};display:block;height:1px;background: transparent;;"></div>
14027
- {% endmacro %}
14028
14026
  {% macro pick_component(ctx) %}
14029
14027
  {% if ctx.tag == "head" %}
14030
14028
  {{ use_head(ctx) }}
@@ -14048,8 +14046,6 @@ display: block;
14048
14046
  {{ use_divider(ctx) }}
14049
14047
  {% elif ctx.tag == "tag" %}
14050
14048
  {{ use_tag(ctx) }}
14051
- {% elif ctx.tag == "width" %}
14052
- {{ set_width(ctx) }}
14053
14049
  {% elif ctx.tag == "title_content" %}
14054
14050
  {{ use_content_title(ctx) }}
14055
14051
  {% else %}
@@ -14065,9 +14061,9 @@ display: block;
14065
14061
  {% endfor %}
14066
14062
  {% endif %}
14067
14063
  {% endmacro %}
14068
- <body style="margin: 0; padding: 0 8px 0 0;">
14064
+ <div style="margin: 0; padding: 0 8px 0 0;">
14069
14065
  {{ use_component(ctx) }}
14070
- </body>
14066
+ </div>
14071
14067
  <!-- /Component.njk -->
14072
14068
  <!-- Text.njk -->
14073
14069
  {% macro text_default(ctx) %}