Skip to content

Commit

Permalink
do not replace " in tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Slashek committed Sep 13, 2023
1 parent 13ec581 commit 0bd790e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/views/partials/api/liquid/platformos_tags.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"deprecated": {{ item.deprecated | default: false | json }},
"deprecation_reason": "{{item.deprecated | join: ', '}}",
"description": {{ item.description | json }},
"syntax": {{ item.examples.first | replace: '"', '\"' | json }},
"syntax": {{ item.examples.first | json }},
"name": "{{item.name}}",
"parameters": [
{% for param in item.params %}
Expand All @@ -24,8 +24,7 @@
{
"types": ["untyped"],
"name": "",
"description": "{{return_type.description | replace: '"', '\"' | replace: "
", "\n" }}",
"description": {{return_type.description | json }},
"array_value": ""
}{% unless forloop.last %},{% endunless %}
{% endfor %}
Expand All @@ -37,7 +36,7 @@
"description": "",
"syntax": "",
"path": "",
"raw_liquid": {{ example | replace: '"', '\"' | json }},
"raw_liquid": {{ example | json }},
"parameter": false,
"display_type": "text",
"show_data_tab": true
Expand Down

0 comments on commit 0bd790e

Please sign in to comment.