Skip to content
Closed
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
11 changes: 8 additions & 3 deletions src/resources/editor/tools/vs-code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24927,12 +24927,12 @@ var require_yaml_intelligence_resources = __commonJS({
mermaid: "%%"
},
"handlers/mermaid/schema.yml": {
_internalId: 197539,
_internalId: 197477,
type: "object",
description: "be an object",
properties: {
"mermaid-format": {
_internalId: 197531,
_internalId: 197469,
type: "enum",
enum: [
"png",
Expand All @@ -24948,7 +24948,7 @@ var require_yaml_intelligence_resources = __commonJS({
exhaustiveCompletions: true
},
theme: {
_internalId: 197538,
_internalId: 197476,
type: "anyOf",
anyOf: [
{
Expand Down Expand Up @@ -24992,6 +24992,11 @@ var require_yaml_intelligence_resources = __commonJS({
"schema/document-a11y.yml": [
{
name: "axe",
tags: {
formats: [
"$html-files"
]
},
schema: {
anyOf: [
"boolean",
Expand Down

Large diffs are not rendered by default.

11 changes: 8 additions & 3 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.

11 changes: 8 additions & 3 deletions src/resources/editor/tools/yaml/yaml-intelligence-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17899,12 +17899,12 @@
"mermaid": "%%"
},
"handlers/mermaid/schema.yml": {
"_internalId": 197539,
"_internalId": 197477,
"type": "object",
"description": "be an object",
"properties": {
"mermaid-format": {
"_internalId": 197531,
"_internalId": 197469,
"type": "enum",
"enum": [
"png",
Expand All @@ -17920,7 +17920,7 @@
"exhaustiveCompletions": true
},
"theme": {
"_internalId": 197538,
"_internalId": 197476,
"type": "anyOf",
"anyOf": [
{
Expand Down Expand Up @@ -17964,6 +17964,11 @@
"schema/document-a11y.yml": [
{
"name": "axe",
"tags": {
"formats": [
"$html-files"
]
},
"schema": {
"anyOf": [
"boolean",
Expand Down
19 changes: 19 additions & 0 deletions src/resources/filters/qmd-json-reader.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- json-reader.lua
-- A Pandoc reader for quarto-markdown's json format
--
-- Copyright (C) 2025 by RStudio, PBC

local readqmd = require("readqmd")

function Reader (inputs, opts)
-- the custom Pandoc reader apparently runs on a different Lua context than the
-- other filters, so we cannot use global state to share the options.
-- as a result, we'll inject the options into the document metadata
-- and extract it later.

local result = pandoc.read(tostring(inputs), "json")

result.meta.quarto_pandoc_reader_opts = readqmd.options_to_meta(opts)

return result
end
2 changes: 2 additions & 0 deletions src/resources/schema/document-a11y.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
- name: axe
tags:
formats: [$html-files]
schema:
anyOf:
- boolean
Expand Down
Loading