Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _quarto:
typst:
ensureTypstFileRegexMatches:
-
- ' \[A\], \[B\]'
- ' \[A\], \[B\]'
- []
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _quarto:
typst:
ensureTypstFileRegexMatches:
-
- ' table.cell\(stroke: \(thickness: 17em\)\)\[A\], \[B\]'
- ' table.cell\(stroke: \(thickness: 17em\)\)\[A\], \[B\]'
- []
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _quarto:
typst:
ensureTypstFileRegexMatches:
-
- ' \[A\], \[B\]'
- ' \[A\], \[B\]'
- []
---

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
format:
html:
quality: -1
pdf:
quality: na
typst:
quality: -1
comment: "invalid"
dashboard:
quality: -1
docx:
quality: na
pptx:
quality: na
keep-typ: true
_quarto:
tests:
typst:
ensureTypstFileRegexMatches:
-
- ' \[A\], \[B\]'
- []
---

```{=html}
<table>
<tr><td style="border-width: 1pt 2pt 3pt 4pt 5pt">A</td><td>B</td></tr>
</table>
```

41 changes: 7 additions & 34 deletions src/resources/editor/tools/vs-code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11955,36 +11955,6 @@ var require_yaml_intelligence_resources = __commonJS({
id: "brand-color-value",
schema: "string"
},
{
id: "logo-string-layout",
description: "Source path or source path with layout options for logo",
anyOf: [
"string",
{
object: {
closed: true,
properties: {
location: {
schema: "string",
description: "X-Y positioning of logo\n"
},
padding: {
schema: "string",
description: "Padding of logo\n"
},
width: {
schema: "string",
description: "Width of logo\n"
},
src: {
schema: "path",
description: "Source path of logo\n"
}
}
}
}
]
},
{
id: "brand-color",
description: "The brand's custom color palette and theme.\n",
Expand Down Expand Up @@ -17677,7 +17647,10 @@ var require_yaml_intelligence_resources = __commonJS({
]
},
schema: {
ref: "logo-string-layout"
anyOf: [
"string",
"object"
]
},
description: "Logo image (placed in bottom right corner of slides)"
},
Expand Down Expand Up @@ -24150,12 +24123,12 @@ var require_yaml_intelligence_resources = __commonJS({
mermaid: "%%"
},
"handlers/mermaid/schema.yml": {
_internalId: 192356,
_internalId: 192336,
type: "object",
description: "be an object",
properties: {
"mermaid-format": {
_internalId: 192348,
_internalId: 192328,
type: "enum",
enum: [
"png",
Expand All @@ -24171,7 +24144,7 @@ var require_yaml_intelligence_resources = __commonJS({
exhaustiveCompletions: true
},
theme: {
_internalId: 192355,
_internalId: 192335,
type: "anyOf",
anyOf: [
{
Expand Down
41 changes: 7 additions & 34 deletions src/resources/editor/tools/yaml/web-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 7 additions & 34 deletions src/resources/editor/tools/yaml/yaml-intelligence-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -4927,36 +4927,6 @@
"id": "brand-color-value",
"schema": "string"
},
{
"id": "logo-string-layout",
"description": "Source path or source path with layout options for logo",
"anyOf": [
"string",
{
"object": {
"closed": true,
"properties": {
"location": {
"schema": "string",
"description": "X-Y positioning of logo\n"
},
"padding": {
"schema": "string",
"description": "Padding of logo\n"
},
"width": {
"schema": "string",
"description": "Width of logo\n"
},
"src": {
"schema": "path",
"description": "Source path of logo\n"
}
}
}
}
]
},
{
"id": "brand-color",
"description": "The brand's custom color palette and theme.\n",
Expand Down Expand Up @@ -10649,7 +10619,10 @@
]
},
"schema": {
"ref": "logo-string-layout"
"anyOf": [
"string",
"object"
]
},
"description": "Logo image (placed in bottom right corner of slides)"
},
Expand Down Expand Up @@ -17122,12 +17095,12 @@
"mermaid": "%%"
},
"handlers/mermaid/schema.yml": {
"_internalId": 192356,
"_internalId": 192336,
"type": "object",
"description": "be an object",
"properties": {
"mermaid-format": {
"_internalId": 192348,
"_internalId": 192328,
"type": "enum",
"enum": [
"png",
Expand All @@ -17143,7 +17116,7 @@
"exhaustiveCompletions": true
},
"theme": {
"_internalId": 192355,
"_internalId": 192335,
"type": "anyOf",
"anyOf": [
{
Expand Down
16 changes: 16 additions & 0 deletions src/resources/filters/modules/typst.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,26 @@ local function _main()
return result
end
end

local function as_typst_dictionary(tab)
local entries = {}
for k, v in _quarto.utils.table.sortedPairs(tab) do
if type(v) == 'table' then
v = as_typst_dictionary(v)
end
if k and v then
table.insert(entries, k .. ': ' .. v)
end
end
if #entries == 0 then return nil end
return '(' .. table.concat(entries, ', ') .. ')'
end

return {
function_call = typst_function_call,
sortedPairs = sortedPairs,
as_typst_content = as_typst_content,
as_typst_dictionary = as_typst_dictionary,
css = require("modules/typst_css")
}
end
Expand Down
Loading
Loading