diff --git a/docs/.eleventy.js b/docs/.eleventy.js index 00de829..c4bd2bd 100644 --- a/docs/.eleventy.js +++ b/docs/.eleventy.js @@ -83,6 +83,7 @@ function getEstheticRules (ruleOptions) { markup: { attributeCasing: 'preserve', attributeSort: false, + commentDelimiters: 'preserve', commentNewline: false, commentIndent: true, delimiterTerminus: 'inline', @@ -259,9 +260,7 @@ function getCodeBlockInput (raw) { */ function has (prop) { - if (typeof rules === 'object' && prop in rules) { - return true - } + if (typeof rules === 'object' && prop in rules) return true return false; @@ -359,7 +358,7 @@ function highlightCode(md, raw, language) { code = papyrus.static(raw, { language, editor: false, - showSpace: true, + showSpace: false, trimEnd: true, trimStart: true }); @@ -442,7 +441,9 @@ function getWrapFractionRuleExample (estheticRules, papyrusValue, rawInput) {
- Wrap Fraction - Samples + Preset (default) - + +
    +
  • default
  • +
  • recommended
  • +
  • warrington
  • +
  • strict
  • +
  • prettier
  • +
+
- {{ links[1] | replace: '-', ' ' | capitalize }} + {{ links[1]| replace: '-', ' ' | capitalize }}
{% if links[2] %} @@ -19,7 +19,7 @@ {% svg 'chevron-right', 'icon icon-right' %}
- {{ links[2]| replace: '-', ' ' | capitalize }} + {{ links[2] | replace: '-', ' ' | capitalize }}
{% endif %} @@ -28,7 +28,7 @@ {% svg 'chevron-right', 'icon icon-right' %}
- {{ links[3]| replace: '-', ' ' | capitalize }} + {{ links[3] | replace: '-', ' ' | capitalize }}
{% endif %} diff --git a/docs/src/views/include/landing.liquid b/docs/src/views/include/landing.liquid index fe19b18..6bc711a 100644 --- a/docs/src/views/include/landing.liquid +++ b/docs/src/views/include/landing.liquid @@ -31,7 +31,7 @@
- + pnpm add esthetic
diff --git a/docs/src/views/include/navbar.liquid b/docs/src/views/include/navbar.liquid index a3ac4ab..05bbbd0 100644 --- a/docs/src/views/include/navbar.liquid +++ b/docs/src/views/include/navbar.liquid @@ -1,17 +1,19 @@ ␊ ␊ - {% comment %} esthetic-ignore-next {% endcomment %}␊ -
␊ + {% comment %} esthetic-ignore-next {% endcomment %}␊ +
␊ ␊ -

Ignored Content

␊ +

Ignored Content

␊ ␊ -

␊ +

␊ ␊ - All this content contained between the main tags will be ignored␊ + All this content contained between the main tags will be ignored␊ ␊ -

␊ +

␊ ␊ -
␊ +
␊ ␊ ␊
␊ @@ -391,7 +388,7 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ {% comment %} esthetic-ignore-next {% endcomment %}␊ - ␊ + ␊ ␊
  • ␊ @@ -424,7 +421,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ {% comment %} esthetic-ignore-next {% endcomment %}␊ - ␊ + ␊ ␊ {% comment %} esthetic-ignore-next {% endcomment %}␊ - ␊ + ␊ ␊
    • ␊ @@ -446,7 +445,7 @@ Generated by [AVA](https://avajs.dev).
    • ␊ FORMAT␊
    • ␊ - {% comment %} esthetic-ignore-next {% endcomment %}␊ + {% comment %} esthetic-ignore-next {% endcomment %}␊
    • DO NOT FORMAT
    • ␊ FORMAT␊ @@ -487,11 +486,11 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ {% comment %}␊ - esthetic-ignore-next␊ + esthetic-ignore-next␊ {% endcomment %}␊ {% if xxx %}␊ ␊ -

      Ignored Content

      ␊ +

      Ignored Content

      ␊ ␊

      ␊ ␊ @@ -523,21 +522,23 @@ Generated by [AVA](https://avajs.dev). `{% # HTML with nested tags matching first tag name %}␊ ␊ {% comment %} esthetic-ignore-next {% endcomment %}␊ - {% for one in array %}␊ + {% for one in array %}␊ + ␊

      ␊ {%␊ - for two in array␊ + for two in array␊ %}␊ ␊ All this content will be ignored until closing of "for one"␊ ␊ - {% for two in array %}␊ + {% for three in array %}␊
      ␊ - {% endfor %}␊ + {%endfor%}␊ + ␊ + {% endfor %}␊ ␊ - {% endfor %}␊
      ␊ - {% endfor %}␊ + {%- endfor %}␊ ␊
      ␊ ␊ @@ -566,14 +567,14 @@ Generated by [AVA](https://avajs.dev).
      • ␊ ␊ - {% comment %}␊ - esthetic-ignore-next␊ - {% endcomment %}␊ - {% unless condition %}␊ - {{ this.␊ - content .␊ - is .ignored }}␊ - {% endunless %}␊ + {% comment %}␊ + esthetic-ignore-next␊ + {% endcomment %}␊ + {% unless condition %}␊ + {{ this.␊ + content .␊ + is .ignored }}␊ + {% endunless %}␊ ␊
      ␊ @@ -598,7 +599,7 @@ Generated by [AVA](https://avajs.dev). ␊ {% # esthetic-ignore-next %}␊
      ␊ -

      ␊ +

      ` >

      Rules

      @@ -657,8 +658,7 @@ Generated by [AVA](https://avajs.dev).
      ␊ ␊ ` >

      Rules

      @@ -835,8 +833,7 @@ Generated by [AVA](https://avajs.dev). ␊

      ␊ ␊ - ␊ + ␊ ␊ ␊
      ␊ @@ -873,7 +870,7 @@ Generated by [AVA](https://avajs.dev). ␊

      ␊ ␊ - ␊ + ␊ ␊ ␊

      ␊ @@ -945,7 +942,7 @@ Generated by [AVA](https://avajs.dev). ␊ All tags contained in 1 will be ignored until closing of 1␊
      ␊ -
      ␊ +
      ␊ ␊
      ␊ @@ -1004,7 +1001,7 @@ Generated by [AVA](https://avajs.dev).
    ␊ ␊ {% # esthetic-ignore-next %}␊ - ␊ + ␊ ␊
    • ␊ @@ -1037,7 +1034,8 @@ Generated by [AVA](https://avajs.dev). ␊ ␊ {% # esthetic-ignore-next %}␊ - ␊ + ␊ ␊ {% # esthetic-ignore-next %}␊ - ␊ + ␊ ␊
      • ␊ @@ -1134,21 +1133,22 @@ Generated by [AVA](https://avajs.dev). `{% # HTML with nested tags matching first tag name %}␊ ␊ {% # esthetic-ignore-next %}␊ - {% for one in array %}␊ + {% for one in array %}␊
        ␊ {%␊ - for two in array␊ + for two in array␊ %}␊ ␊ All this content will be ignored until closing of "for one"␊ ␊ - {% for two in array %}␊ + {% for three in array %}␊
        ␊ {% endfor %}␊ ␊ - {% endfor %}␊ + {%␊ + endfor %}␊
        ␊ - {% endfor %}␊ + {% endfor %}␊ ␊