diff --git a/CHANGELOG.md b/CHANGELOG.md index cb10555..227e7da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,7 +46,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [0.5.0] - 2026-02-04 ### Added -- **Academic extension** (`codex.academic`): theorems (8 variants), proofs, exercises with hints/solutions, exercise sets, algorithms, abstracts with keywords, equation groups +- **Academic extension** (`cdx.academic`): theorems (8 variants), proofs, exercises with hints/solutions, exercise sets, algorithms, abstracts with keywords, equation groups - Academic cross-reference marks: `theorem-ref`, `equation-ref`, `algorithm-ref` for typed internal links - Admonition blocks from fenced Divs (note, warning, tip, danger, important, caution) - Figure container blocks with `figcaption` children and subfigure support @@ -108,10 +108,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [0.1.0] - 2025-01-25 ### Added -- Initial Pandoc custom writer for Codex format +- Initial Pandoc custom writer for CDX format - Block types: paragraph, heading, list, codeBlock, blockquote, table, math, image, horizontalRule - Inline marks: bold, italic, code, link, strikethrough, underline, superscript, subscript - Dublin Core metadata extraction from YAML frontmatter -- Pandoc reader for Codex JSON back to any output format +- Pandoc reader for CDX JSON back to any output format - Full pipeline script for creating `.cdx` archives - Integration test suite with 12 test cases diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d258f10..4fee589 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,7 +43,7 @@ make test-golden make test-reader # Test with a specific input file -pandoc input.md -t codex.lua -o output.cdx +pandoc input.md -t cdx.lua -o output.cdx ``` Before submitting a PR, run the full suite: @@ -90,7 +90,7 @@ See the [Project Structure section in README.md](README.md#project-structure) fo ## Specification Reference -This writer implements the [Codex Document Format Specification](https://github.com/Entrolution/codex-file-format-spec). When implementing new features: +This writer implements the [CDX Document Format Specification](https://github.com/Entrolution/codex-file-format-spec). When implementing new features: - Reference the relevant spec section - Note any deviations or extensions diff --git a/LICENSE-APACHE b/LICENSE-APACHE index a53cea9..0483f1c 100644 --- a/LICENSE-APACHE +++ b/LICENSE-APACHE @@ -186,7 +186,7 @@ APPENDIX: How to apply the Apache License to your work. same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2025 Codex Document Format Contributors +Copyright 2025 CDX Document Format Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/LICENSE-MIT b/LICENSE-MIT index 122d7f4..f3ef7fb 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Codex Document Format Contributors +Copyright (c) 2025 CDX Document Format Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index c457312..b388a12 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -# Makefile for Codex Pandoc Writer +# Makefile for CDX Pandoc Writer PANDOC := pandoc -WRITER := codex.lua +WRITER := cdx.lua JQ := jq # Test input files @@ -14,7 +14,7 @@ TEST_CDX := $(patsubst tests/inputs/%.md,tests/outputs/%.cdx,$(TEST_INPUTS)) all: test help: - @echo "Codex Pandoc Writer" + @echo "CDX Pandoc Writer" @echo "" @echo "Targets:" @echo " test-all Run everything (lint + test + golden + reader + validate)" @@ -108,7 +108,7 @@ validate-schema: test-json @echo "Validating against spec schemas..." @for f in tests/outputs/*.json; do \ echo "Checking $$f..."; \ - $(JQ) -e '.manifest.codex' $$f > /dev/null || { echo " WARN: no manifest.codex version"; continue; }; \ + $(JQ) -e '.manifest.cdx' $$f > /dev/null || { echo " WARN: no manifest.cdx version"; continue; }; \ $(JQ) -e '.content.blocks | type == "array"' $$f > /dev/null || { echo " FAIL: content.blocks is not an array"; exit 1; }; \ $(JQ) -e '.dublin_core.terms | type == "object"' $$f > /dev/null || { echo " FAIL: dublin_core.terms is not an object"; exit 1; }; \ $(JQ) -e '[.content.blocks[] | .type] | all(. != null and . != "")' $$f > /dev/null || { echo " FAIL: block missing type field"; exit 1; }; \ diff --git a/README.md b/README.md index 6ac53eb..bae991a 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ [![CI](https://github.com/Entrolution/cdx-pandoc/actions/workflows/ci.yml/badge.svg)](https://github.com/Entrolution/cdx-pandoc/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)](LICENSE-MIT) -Pandoc custom writer and reader for [Codex Document Format](https://github.com/Entrolution/codex-file-format-spec) (`.cdx`) files. +Pandoc custom writer and reader for [CDX Document Format](https://github.com/Entrolution/codex-file-format-spec) (`.cdx`) files. ## Overview -This writer enables conversion from any Pandoc-supported format (Markdown, LaTeX, Word, etc.) to Codex Document Format. The conversion happens in two phases: +This writer enables conversion from any Pandoc-supported format (Markdown, LaTeX, Word, etc.) to CDX Document Format. The conversion happens in two phases: -1. **Lua Writer** (`codex.lua`) - Converts Pandoc AST to Codex JSON structures +1. **Lua Writer** (`cdx.lua`) - Converts Pandoc AST to CDX JSON structures 2. **Packaging** - Shell wrapper creates the final .cdx ZIP archive ## Requirements @@ -26,7 +26,7 @@ This writer enables conversion from any Pandoc-supported format (Markdown, LaTeX Generate the intermediate JSON structure: ```bash -pandoc input.md -t codex.lua -o output.json +pandoc input.md -t cdx.lua -o output.json ``` ### Full Pipeline (Recommended) @@ -48,9 +48,9 @@ Any format Pandoc can read: - reStructuredText (.rst) - And many more... -## Reading Codex Documents +## Reading CDX Documents -Convert Codex JSON back to any Pandoc-supported output format: +Convert CDX JSON back to any Pandoc-supported output format: ```bash pandoc -f cdx-reader.lua output.json -o document.md @@ -64,7 +64,7 @@ The reader handles core block types (paragraphs, headings, lists, code blocks, b ### Block Types Supported -| Pandoc | Codex | Notes | +| Pandoc | CDX | Notes | |--------|-------|-------| | Para | paragraph | Text content | | Header | heading | Levels 1-6, preserves IDs | @@ -96,7 +96,7 @@ The reader handles core block types (paragraphs, headings, lists, code blocks, b ### Inline Formatting -| Pandoc | Codex Mark | +| Pandoc | CDX Mark | |--------|------------| | Strong | bold | | Emph | italic | @@ -224,7 +224,7 @@ The writer produces a JSON structure with three sections: ```json { "manifest": { - "codex": "0.1", + "cdx": "0.1", "id": "pending", "state": "draft", "created": "2025-01-28T10:00:00Z", @@ -248,7 +248,7 @@ The writer produces a JSON structure with three sections: } ``` -The packaging script extracts these into the proper Codex directory structure. +The packaging script extracts these into the proper CDX directory structure. ## Development @@ -267,8 +267,8 @@ make test-reader # Test round-trip (JSON → markdown) ``` cdx-pandoc/ -├── codex.lua # Main Pandoc custom writer -├── cdx-reader.lua # Codex → Pandoc reader +├── cdx.lua # Main Pandoc custom writer +├── cdx-reader.lua # CDX → Pandoc reader ├── lib/ │ ├── blocks.lua # Writer: block type converters │ ├── inlines.lua # Writer: inline/text node converters @@ -336,14 +336,14 @@ Convert: ### "Cannot find library" error -Ensure you're running pandoc from the project root directory, or that the `lib/` directory is in the same location as `codex.lua`. +Ensure you're running pandoc from the project root directory, or that the `lib/` directory is in the same location as `cdx.lua`. ### Citations not appearing in bibliography Add the `--citeproc` flag to enable Pandoc's citation processor: ```bash -pandoc input.md --citeproc -t codex.lua -o output.json +pandoc input.md --citeproc -t cdx.lua -o output.json ``` ### Empty or missing metadata @@ -368,7 +368,7 @@ Inline math uses single dollar signs: `$x = y$`. Inline math is preserved as a ` ### Reader round-trip loses semantic data -The reader converts Codex back to standard Pandoc elements. Most block types survive round-trip faithfully: +The reader converts CDX back to standard Pandoc elements. Most block types survive round-trip faithfully: - **Core blocks**: paragraphs, headings, lists, tables, code, math, images, figures, definition lists, admonitions all round-trip cleanly. - **Academic blocks**: theorems (variant, id, title), proofs (of, method), exercises (difficulty, hints, solutions), algorithms (title, pseudocode), abstracts (keywords), and equation groups (reconstructed LaTeX environments) all survive via Pandoc Div attributes. diff --git a/cdx-reader.lua b/cdx-reader.lua index 129fdb2..d39ee2f 100644 --- a/cdx-reader.lua +++ b/cdx-reader.lua @@ -1,5 +1,5 @@ --- Codex Document Format → Pandoc Reader --- Converts Codex JSON to Pandoc AST for output to any format. +-- CDX Document Format → Pandoc Reader +-- Converts CDX JSON to Pandoc AST for output to any format. -- -- Usage: -- pandoc -f cdx-reader.lua output.json -o document.md diff --git a/codex.lua b/cdx.lua similarity index 95% rename from codex.lua rename to cdx.lua index f0f1adf..887c1c9 100644 --- a/codex.lua +++ b/cdx.lua @@ -1,11 +1,11 @@ --- codex.lua --- Pandoc custom writer for Codex Document Format +-- cdx.lua +-- Pandoc custom writer for CDX Document Format -- -- Usage: --- pandoc input.md -t codex.lua -o output.json +-- pandoc input.md -t cdx.lua -o output.json -- -- Output: JSON containing manifest, content, and dublin_core sections --- that can be unpacked into a Codex directory structure and packaged. +-- that can be unpacked into a CDX directory structure and packaged. -- Get the directory containing this script local script_dir = PANDOC_SCRIPT_FILE and (PANDOC_SCRIPT_FILE:match("(.*/)" ) or "") or "" @@ -52,7 +52,7 @@ academic.set_extension_tracker(track_extension) blocks.set_academic(academic) -- Spec version -local CODEX_VERSION = "0.1" +local CDX_VERSION = "0.1" local CONTENT_VERSION = "0.7.1" -- Generate ISO 8601 timestamp @@ -70,7 +70,7 @@ local function create_manifest() local now = iso_timestamp() return { - codex = CODEX_VERSION, + cdx = CDX_VERSION, id = "pending", state = "draft", created = now, diff --git a/lib/academic.lua b/lib/academic.lua index fac63cd..0ffab4f 100644 --- a/lib/academic.lua +++ b/lib/academic.lua @@ -1,6 +1,6 @@ -- lib/academic.lua -- Writer-side academic extension block conversion --- Converts Pandoc Divs/RawBlocks to academic:* Codex blocks +-- Converts Pandoc Divs/RawBlocks to academic:* CDX blocks local utils = dofile((PANDOC_SCRIPT_FILE and (PANDOC_SCRIPT_FILE:match("(.*/)" ) or "") or "") .. "lib/utils.lua") local has_class = utils.has_class @@ -12,7 +12,7 @@ local M = {} -- Module references (set by init) local blocks = nil --- Extension tracker function (set by codex.lua) +-- Extension tracker function (set by cdx.lua) local track_extension = function() end function M.set_blocks(mod) @@ -392,7 +392,7 @@ end -- Convert a Div block to its academic type -- @param block Pandoc Div element -- @param academic_type The classified type string --- @return Codex block +-- @return CDX block function M.convert_div(block, academic_type) track_extension(utils.EXT_ACADEMIC) if theorem_variants[academic_type] then diff --git a/lib/bibliography.lua b/lib/bibliography.lua index e4a6293..158d363 100644 --- a/lib/bibliography.lua +++ b/lib/bibliography.lua @@ -7,7 +7,7 @@ local meta_to_string = utils.meta_to_string local M = {} --- Map CSL types to Codex entry types +-- Map CSL types to CDX entry types M.TYPE_MAP = { ["article-journal"] = "article-journal", ["article-magazine"] = "article-magazine", @@ -139,8 +139,8 @@ function M.extract_date(date_val) return result.year and result or nil end --- Simple string fields to copy from CSL reference to Codex entry --- Each entry is {csl_field, codex_field} (codex_field defaults to csl_field) +-- Simple string fields to copy from CSL reference to CDX entry +-- Each entry is {csl_field, cdx_field} (cdx_field defaults to csl_field) local SIMPLE_FIELDS = { {"title"}, {"container-title"}, @@ -155,9 +155,9 @@ local SIMPLE_FIELDS = { {"abstract"}, } --- Extract a single CSL reference entry to Codex format +-- Extract a single CSL reference entry to CDX format -- @param ref CSL reference (MetaMap or table) --- @return Codex bibliography entry +-- @return CDX bibliography entry function M.extract_entry(ref) if not ref then return nil @@ -180,7 +180,7 @@ function M.extract_entry(ref) return nil end - -- Type (map to Codex types or keep as-is) + -- Type (map to CDX types or keep as-is) local ref_type = get_field("type") entry.type = M.TYPE_MAP[ref_type] or ref_type or "other" @@ -198,9 +198,9 @@ function M.extract_entry(ref) -- Simple string fields for _, field in ipairs(SIMPLE_FIELDS) do local csl_name = field[1] - local codex_name = field[2] or csl_name + local cdx_name = field[2] or csl_name local val = get_field(csl_name) - if val then entry[codex_name] = val end + if val then entry[cdx_name] = val end end return entry diff --git a/lib/blocks.lua b/lib/blocks.lua index 6892e22..02bc5d1 100644 --- a/lib/blocks.lua +++ b/lib/blocks.lua @@ -1,5 +1,5 @@ -- lib/blocks.lua --- Convert Pandoc blocks to Codex block structures +-- Convert Pandoc blocks to CDX block structures local utils = dofile((PANDOC_SCRIPT_FILE and (PANDOC_SCRIPT_FILE:match("(.*/)" ) or "") or "") .. "lib/utils.lua") local has_class = utils.has_class @@ -15,10 +15,10 @@ local inlines = nil -- Academic module (will be set by init, optional) local academic = nil --- Extension tracker function (set by codex.lua) +-- Extension tracker function (set by cdx.lua) local track_extension = function() end --- Bibliography context (set by codex.lua before conversion) +-- Bibliography context (set by cdx.lua before conversion) local bib_context = { csl_entries = {}, style = "unknown" @@ -45,9 +45,9 @@ function M.set_bibliography_context(csl_entries, style) bib_context.style = style or "unknown" end --- Convert a list of Pandoc blocks to Codex blocks +-- Convert a list of Pandoc blocks to CDX blocks -- @param blocks Pandoc block list --- @return Array of Codex blocks +-- @return Array of CDX blocks function M.convert(blocks) if not blocks then return {} @@ -109,9 +109,9 @@ block_handlers.LineBlock = function(block) } end --- Convert a single Pandoc block to a Codex block +-- Convert a single Pandoc block to a CDX block -- @param block Pandoc block element --- @return Codex block table or nil +-- @return CDX block table or nil function M.convert_block(block) local tag = block.t or block.tag local handler = block_handlers[tag] diff --git a/lib/inlines.lua b/lib/inlines.lua index b8bfdf9..56f9da1 100644 --- a/lib/inlines.lua +++ b/lib/inlines.lua @@ -1,5 +1,5 @@ -- lib/inlines.lua --- Convert Pandoc inline elements to Codex text nodes +-- Convert Pandoc inline elements to CDX text nodes -- Load shared utilities local utils = dofile((PANDOC_SCRIPT_FILE and (PANDOC_SCRIPT_FILE:match("(.*/)" ) or "") or "") .. "lib/utils.lua") @@ -8,7 +8,7 @@ local has_class = utils.has_class local M = {} --- Extension tracker function (set by codex.lua) +-- Extension tracker function (set by cdx.lua) local track_extension = function() end -- Set the extension tracker function @@ -505,11 +505,11 @@ function M.merge_adjacent(nodes) return result end --- Convert a list of Pandoc inlines to Codex text nodes +-- Convert a list of Pandoc inlines to CDX text nodes -- This is the main entry point -- @param inlines Pandoc inline list -- @param ctx Optional context for state accumulation (defaults to global) --- @return Array of Codex text nodes +-- @return Array of CDX text nodes function M.convert(inlines, ctx) if not inlines then return {} diff --git a/lib/json.lua b/lib/json.lua index 1648ca6..89289c3 100644 --- a/lib/json.lua +++ b/lib/json.lua @@ -1,5 +1,5 @@ -- lib/json.lua --- JSON encoding utilities for Codex Pandoc writer +-- JSON encoding utilities for CDX Pandoc writer local M = {} diff --git a/lib/metadata.lua b/lib/metadata.lua index 76ae485..39da0f2 100644 --- a/lib/metadata.lua +++ b/lib/metadata.lua @@ -293,8 +293,8 @@ function M.extract(meta) local doc_type = meta_to_string(meta["type"]) or meta_to_string(meta.documentType) terms.type = doc_type or "Text" - -- Format (always Codex JSON) - terms.format = "application/vnd.codex+json" + -- Format (always CDX JSON) + terms.format = "application/vnd.cdx+json" -- If we have no title or creator, return nil if not terms.title then @@ -318,7 +318,7 @@ function M.default_metadata() title = "Untitled Document", creator = "Unknown", type = "Text", - format = "application/vnd.codex+json" + format = "application/vnd.cdx+json" } } end diff --git a/lib/reader_academic.lua b/lib/reader_academic.lua index 878c8b7..bebe334 100644 --- a/lib/reader_academic.lua +++ b/lib/reader_academic.lua @@ -1,6 +1,6 @@ -- lib/reader_academic.lua -- Reader-side academic extension block conversion --- Converts academic:* Codex blocks back to Pandoc AST +-- Converts academic:* CDX blocks back to Pandoc AST local M = {} diff --git a/lib/reader_blocks.lua b/lib/reader_blocks.lua index 7956239..77cb0f9 100644 --- a/lib/reader_blocks.lua +++ b/lib/reader_blocks.lua @@ -1,5 +1,5 @@ --- Reader: Codex blocks → Pandoc blocks --- Converts Codex block types to Pandoc AST block elements. +-- Reader: CDX blocks → Pandoc blocks +-- Converts CDX block types to Pandoc AST block elements. local M = {} @@ -37,7 +37,7 @@ function M.extract_footnotes(blocks) return footnotes end --- Convert an array of Codex blocks to Pandoc blocks +-- Convert an array of CDX blocks to Pandoc blocks function M.convert(blocks) local result = {} for _, block in ipairs(blocks) do @@ -92,7 +92,7 @@ local skip_types = { ["semantic:bibliography"] = true, } --- Convert a single Codex block to Pandoc block(s) +-- Convert a single CDX block to Pandoc block(s) function M.convert_block(block) local btype = block.type or "" diff --git a/lib/reader_inlines.lua b/lib/reader_inlines.lua index 4ea71c3..3ea3d1b 100644 --- a/lib/reader_inlines.lua +++ b/lib/reader_inlines.lua @@ -1,5 +1,5 @@ --- Reader: Codex text nodes → Pandoc inlines --- Converts Codex text nodes with marks to Pandoc inline elements. +-- Reader: CDX text nodes → Pandoc inlines +-- Converts CDX text nodes with marks to Pandoc inline elements. local M = {} @@ -23,7 +23,7 @@ end -- Footnote storage (set externally by reader_blocks) M._footnotes = {} --- Convert an array of Codex text nodes to Pandoc inlines +-- Convert an array of CDX text nodes to Pandoc inlines function M.convert(nodes) local result = {} for _, node in ipairs(nodes) do diff --git a/lib/utils.lua b/lib/utils.lua index 5310154..a1ebc34 100644 --- a/lib/utils.lua +++ b/lib/utils.lua @@ -1,5 +1,5 @@ -- lib/utils.lua --- Shared utility functions for Codex Pandoc writer +-- Shared utility functions for CDX Pandoc writer -- NOTE: Each module that requires utils.lua uses dofile() rather than require() -- because Pandoc custom writers don't support Lua's package.path/require system. -- This means utils.lua is re-executed per module, but the overhead is negligible. @@ -44,8 +44,8 @@ function M.meta_to_string(value) end -- Extension ID constants -M.EXT_SEMANTIC = "codex.semantic" -M.EXT_ACADEMIC = "codex.academic" +M.EXT_SEMANTIC = "cdx.semantic" +M.EXT_ACADEMIC = "cdx.academic" -- Theorem variant types (shared between writer and reader) M.THEOREM_VARIANTS = { diff --git a/scripts/pandoc-to-cdx.sh b/scripts/pandoc-to-cdx.sh index 12e9a07..a1ffbab 100755 --- a/scripts/pandoc-to-cdx.sh +++ b/scripts/pandoc-to-cdx.sh @@ -1,13 +1,13 @@ #!/usr/bin/env bash # -# pandoc-to-cdx.sh - Convert documents to Codex format using Pandoc +# pandoc-to-cdx.sh - Convert documents to CDX format using Pandoc # # Usage: # ./pandoc-to-cdx.sh input.md output.cdx # ./pandoc-to-cdx.sh input.docx output.cdx # # This script: -# 1. Runs Pandoc with the Codex custom writer +# 1. Runs Pandoc with the CDX custom writer # 2. Extracts the JSON output into proper directory structure # 3. Computes content hash and updates manifest # 4. Packages into a .cdx ZIP archive @@ -22,7 +22,7 @@ set -euo pipefail # Script directory SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" WRITER_DIR="$(dirname "$SCRIPT_DIR")" -CODEX_WRITER="$WRITER_DIR/codex.lua" +CDX_WRITER="$WRITER_DIR/cdx.lua" # Colors for output RED='\033[0;31m' @@ -33,11 +33,11 @@ NC='\033[0m' # No Color usage() { echo "Usage: $(basename "$0") " echo "" - echo "Convert any Pandoc-supported format to Codex Document Format (.cdx)" + echo "Convert any Pandoc-supported format to CDX Document Format (.cdx)" echo "" echo "Arguments:" echo " input_file Source document (Markdown, LaTeX, Word, etc.)" - echo " output.cdx Output Codex archive" + echo " output.cdx Output CDX archive" echo "" echo "Options:" echo " -h, --help Show this help message" @@ -101,8 +101,8 @@ convert() { error "Input file not found: $input_file" fi - if [[ ! -f "$CODEX_WRITER" ]]; then - error "Codex writer not found: $CODEX_WRITER" + if [[ ! -f "$CDX_WRITER" ]]; then + error "CDX writer not found: $CDX_WRITER" fi # Create temp directory @@ -110,16 +110,16 @@ convert() { temp_dir=$(mktemp -d) trap "rm -rf '$temp_dir'" EXIT - info "Converting $input_file to Codex format..." + info "Converting $input_file to CDX format..." - # Run Pandoc with the Codex writer + # Run Pandoc with the CDX writer local json_output="$temp_dir/output.json" - if ! pandoc "$input_file" -t "$CODEX_WRITER" -o "$json_output" 2>&1; then + if ! pandoc "$input_file" -t "$CDX_WRITER" -o "$json_output" 2>&1; then error "Pandoc conversion failed" fi # Create directory structure - info "Creating Codex directory structure..." + info "Creating CDX directory structure..." mkdir -p "$temp_dir/cdx/content" mkdir -p "$temp_dir/cdx/metadata" @@ -145,7 +145,7 @@ convert() { "$json_output" > "$temp_dir/cdx/manifest.json" # Create the .cdx archive - info "Creating Codex archive..." + info "Creating CDX archive..." local output_path output_path="$(cd "$(dirname "$output_file")" && pwd)/$(basename "$output_file")" diff --git a/tests/expected/abstract.json b/tests/expected/abstract.json index 34daca8..fdd3ed8 100644 --- a/tests/expected/abstract.json +++ b/tests/expected/abstract.json @@ -51,7 +51,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Abstract Test", "type": "Text" }, @@ -67,14 +67,14 @@ "name": "Abstract Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/academic-crossrefs.json b/tests/expected/academic-crossrefs.json index d66beef..8406750 100644 --- a/tests/expected/academic-crossrefs.json +++ b/tests/expected/academic-crossrefs.json @@ -235,7 +235,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Academic Cross-References Test", "type": "Text" }, @@ -251,14 +251,14 @@ "name": "Academic Cross-References Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/academic-full.json b/tests/expected/academic-full.json index 4e68d77..0a15dec 100644 --- a/tests/expected/academic-full.json +++ b/tests/expected/academic-full.json @@ -533,7 +533,7 @@ } ], "date": "2024-01-15", - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Academic Kitchen Sink", "type": "Text" }, @@ -550,14 +550,14 @@ "name": "Academic Kitchen Sink" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/admonitions.json b/tests/expected/admonitions.json index cfee8be..5ff4764 100644 --- a/tests/expected/admonitions.json +++ b/tests/expected/admonitions.json @@ -126,7 +126,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Admonitions Test", "type": "Text" }, @@ -142,7 +142,7 @@ "name": "Admonitions Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/algorithm.json b/tests/expected/algorithm.json index dc9335f..61b3206 100644 --- a/tests/expected/algorithm.json +++ b/tests/expected/algorithm.json @@ -37,7 +37,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Algorithm Test", "type": "Text" }, @@ -53,14 +53,14 @@ "name": "Algorithm Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/basic.json b/tests/expected/basic.json index 9ae4bfa..46f6ec7 100644 --- a/tests/expected/basic.json +++ b/tests/expected/basic.json @@ -263,7 +263,7 @@ "children": [ { "type": "text", - "value": "def hello_world():\n print(\"Hello, Codex!\")" + "value": "def hello_world():\n print(\"Hello, CDX!\")" } ], "language": "python", @@ -318,12 +318,12 @@ } ], "date": "2025-01-28", - "description": "A simple test document for the Codex Pandoc writer.", - "format": "application/vnd.codex+json", + "description": "A simple test document for the CDX Pandoc writer.", + "format": "application/vnd.cdx+json", "language": "en", "subject": [ "test", - "codex", + "cdx", "pandoc" ], "title": "Basic Test Document", @@ -339,13 +339,13 @@ "name": "Test Author" }, "datePublished": "2025-01-28", - "description": "A simple test document for the Codex Pandoc writer.", + "description": "A simple test document for the CDX Pandoc writer.", "inLanguage": "en", - "keywords": "test, codex, pandoc", + "keywords": "test, cdx, pandoc", "name": "Basic Test Document" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/basic.roundtrip.md b/tests/expected/basic.roundtrip.md index 7c338ea..e8a4988 100644 --- a/tests/expected/basic.roundtrip.md +++ b/tests/expected/basic.roundtrip.md @@ -30,7 +30,7 @@ Ordered list: ``` python def hello_world(): - print("Hello, Codex!") + print("Hello, CDX!") ``` ## Blockquote diff --git a/tests/expected/bibliography-csl.json b/tests/expected/bibliography-csl.json index a8f99bb..933dd2c 100644 --- a/tests/expected/bibliography-csl.json +++ b/tests/expected/bibliography-csl.json @@ -109,7 +109,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Bibliography CSL Test", "type": "Text" }, @@ -125,14 +125,14 @@ "name": "Bibliography CSL Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/citations.json b/tests/expected/citations.json index 7edc73f..3b2d80b 100644 --- a/tests/expected/citations.json +++ b/tests/expected/citations.json @@ -101,7 +101,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Citation Test", "type": "Text" }, @@ -117,14 +117,14 @@ "name": "Citation Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/crossrefs.json b/tests/expected/crossrefs.json index 9d7e6f5..626a16f 100644 --- a/tests/expected/crossrefs.json +++ b/tests/expected/crossrefs.json @@ -157,7 +157,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Cross-Reference Test", "type": "Text" }, @@ -173,7 +173,7 @@ "name": "Cross-Reference Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/definition-list.json b/tests/expected/definition-list.json index 851f5fa..0023036 100644 --- a/tests/expected/definition-list.json +++ b/tests/expected/definition-list.json @@ -144,7 +144,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Definition List Test", "type": "Text" }, @@ -160,7 +160,7 @@ "name": "Definition List Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/empty.json b/tests/expected/empty.json index 96fc8e1..9cab95c 100644 --- a/tests/expected/empty.json +++ b/tests/expected/empty.json @@ -6,7 +6,7 @@ "dublin_core": { "terms": { "creator": "Unknown", - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Empty Document", "type": "Text" }, @@ -22,7 +22,7 @@ "name": "Empty Document" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/entities.json b/tests/expected/entities.json index 9eb8ce4..c9827b1 100644 --- a/tests/expected/entities.json +++ b/tests/expected/entities.json @@ -156,7 +156,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Entity Linking Test", "type": "Text" }, @@ -172,14 +172,14 @@ "name": "Entity Linking Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/equation-group.json b/tests/expected/equation-group.json index c52e643..bd31c9b 100644 --- a/tests/expected/equation-group.json +++ b/tests/expected/equation-group.json @@ -69,7 +69,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Equation Group Test", "type": "Text" }, @@ -85,14 +85,14 @@ "name": "Equation Group Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/exercise.json b/tests/expected/exercise.json index 84db18f..ceb1b5f 100644 --- a/tests/expected/exercise.json +++ b/tests/expected/exercise.json @@ -159,7 +159,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Exercise Test", "type": "Text" }, @@ -175,14 +175,14 @@ "name": "Exercise Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/figures.json b/tests/expected/figures.json index 8295ac3..ee2597f 100644 --- a/tests/expected/figures.json +++ b/tests/expected/figures.json @@ -119,7 +119,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Figures Test", "type": "Text" }, @@ -135,7 +135,7 @@ "name": "Figures Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/footnotes.json b/tests/expected/footnotes.json index e4c7c79..ecb42ed 100644 --- a/tests/expected/footnotes.json +++ b/tests/expected/footnotes.json @@ -104,7 +104,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Footnote Test", "type": "Text" }, @@ -120,14 +120,14 @@ "name": "Footnote Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/glossary.json b/tests/expected/glossary.json index b8024ee..c088bf8 100644 --- a/tests/expected/glossary.json +++ b/tests/expected/glossary.json @@ -115,7 +115,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Glossary Test", "type": "Text" }, @@ -131,14 +131,14 @@ "name": "Glossary Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/images.json b/tests/expected/images.json index 31193a5..7ea00db 100644 --- a/tests/expected/images.json +++ b/tests/expected/images.json @@ -68,7 +68,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Image Test", "type": "Text" }, @@ -84,7 +84,7 @@ "name": "Image Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/math.json b/tests/expected/math.json index f8095ec..2784dc8 100644 --- a/tests/expected/math.json +++ b/tests/expected/math.json @@ -196,7 +196,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Math Test", "type": "Text" }, @@ -212,7 +212,7 @@ "name": "Math Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/nested.json b/tests/expected/nested.json index 391c0d8..47317c1 100644 --- a/tests/expected/nested.json +++ b/tests/expected/nested.json @@ -290,7 +290,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Nested Formatting Test", "type": "Text" }, @@ -306,7 +306,7 @@ "name": "Nested Formatting Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/no-metadata.json b/tests/expected/no-metadata.json index 1f99050..916bb61 100644 --- a/tests/expected/no-metadata.json +++ b/tests/expected/no-metadata.json @@ -36,7 +36,7 @@ "dublin_core": { "terms": { "creator": "Unknown", - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Untitled Document", "type": "Text" }, @@ -52,7 +52,7 @@ "name": "Untitled Document" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/orcid.json b/tests/expected/orcid.json index 2fd41ae..111076a 100644 --- a/tests/expected/orcid.json +++ b/tests/expected/orcid.json @@ -74,7 +74,7 @@ ], "date": "2024-06-15", "description": "This document tests ORCID identifier extraction from author metadata.", - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "ORCID Metadata Test", "type": "Text" }, @@ -92,7 +92,7 @@ "name": "ORCID Metadata Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/proof.json b/tests/expected/proof.json index e3cc850..b92b5c8 100644 --- a/tests/expected/proof.json +++ b/tests/expected/proof.json @@ -114,7 +114,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Proof Test", "type": "Text" }, @@ -130,14 +130,14 @@ "name": "Proof Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/expected/state-test-1.json b/tests/expected/state-test-1.json index e75845c..365c8b7 100644 --- a/tests/expected/state-test-1.json +++ b/tests/expected/state-test-1.json @@ -58,7 +58,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "State Test Document 1", "type": "Text" }, @@ -74,14 +74,14 @@ "name": "State Test Document 1" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/state-test-2.json b/tests/expected/state-test-2.json index 3bc1abc..56ad50a 100644 --- a/tests/expected/state-test-2.json +++ b/tests/expected/state-test-2.json @@ -84,7 +84,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "State Test Document 2", "type": "Text" }, @@ -100,14 +100,14 @@ "name": "State Test Document 2" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.semantic", + "id": "cdx.semantic", "required": false, "version": "0.1" } diff --git a/tests/expected/tables.json b/tests/expected/tables.json index d2367d6..8883a16 100644 --- a/tests/expected/tables.json +++ b/tests/expected/tables.json @@ -290,7 +290,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Table Test Document", "type": "Text" }, @@ -306,7 +306,7 @@ "name": "Table Test Document" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" diff --git a/tests/expected/theorem.json b/tests/expected/theorem.json index c95fc1a..2158b72 100644 --- a/tests/expected/theorem.json +++ b/tests/expected/theorem.json @@ -348,7 +348,7 @@ "name": "Test Author" } ], - "format": "application/vnd.codex+json", + "format": "application/vnd.cdx+json", "title": "Theorem Test", "type": "Text" }, @@ -364,14 +364,14 @@ "name": "Theorem Test" }, "manifest": { - "codex": "0.1", + "cdx": "0.1", "content": { "hash": "sha256:0000000000000000000000000000000000000000000000000000000000000000", "path": "content/document.json" }, "extensions": [ { - "id": "codex.academic", + "id": "cdx.academic", "required": false, "version": "0.1" } diff --git a/tests/inputs/basic.md b/tests/inputs/basic.md index e6657a9..9e72113 100644 --- a/tests/inputs/basic.md +++ b/tests/inputs/basic.md @@ -2,10 +2,10 @@ title: Basic Test Document author: Test Author date: 2025-01-28 -abstract: A simple test document for the Codex Pandoc writer. +abstract: A simple test document for the CDX Pandoc writer. keywords: - test - - codex + - cdx - pandoc lang: en --- @@ -38,7 +38,7 @@ Ordered list: ```python def hello_world(): - print("Hello, Codex!") + print("Hello, CDX!") ``` ## Blockquote diff --git a/tests/unit/test_academic.lua b/tests/unit/test_academic.lua index 01eb89f..2fa2bf8 100644 --- a/tests/unit/test_academic.lua +++ b/tests/unit/test_academic.lua @@ -3,7 +3,7 @@ -- Unit tests for lib/academic.lua -- Tests pure-table helper functions that don't require Pandoc runtime -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") local academic = dofile("lib/academic.lua") diff --git a/tests/unit/test_blocks.lua b/tests/unit/test_blocks.lua index 6e1dcb6..fe6233c 100644 --- a/tests/unit/test_blocks.lua +++ b/tests/unit/test_blocks.lua @@ -3,7 +3,7 @@ -- Unit tests for lib/blocks.lua -- Tests pure-table helper functions that don't require Pandoc runtime -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") local blocks = dofile("lib/blocks.lua") diff --git a/tests/unit/test_inlines.lua b/tests/unit/test_inlines.lua index 13f7051..70aea2c 100644 --- a/tests/unit/test_inlines.lua +++ b/tests/unit/test_inlines.lua @@ -4,7 +4,7 @@ -- Tests functions that operate on plain Lua tables (no Pandoc dependency) -- Need to provide a minimal PANDOC_SCRIPT_FILE so the module can load utils -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") local inlines = dofile("lib/inlines.lua") diff --git a/tests/unit/test_metadata.lua b/tests/unit/test_metadata.lua index 0110ab5..fbe21b8 100644 --- a/tests/unit/test_metadata.lua +++ b/tests/unit/test_metadata.lua @@ -4,7 +4,7 @@ -- Tests functions that operate on plain Lua tables (no Pandoc dependency) -- Need to provide a minimal PANDOC_SCRIPT_FILE so the module can load utils -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") local metadata = dofile("lib/metadata.lua") @@ -26,7 +26,7 @@ test.assert_not_nil(dm.terms) test.assert_eq("Untitled Document", dm.terms.title) test.assert_eq("Unknown", dm.terms.creator) test.assert_eq("Text", dm.terms.type) -test.assert_eq("application/vnd.codex+json", dm.terms.format) +test.assert_eq("application/vnd.cdx+json", dm.terms.format) -- ============================================ -- Tests for generate_jsonld() diff --git a/tests/unit/test_reader_academic.lua b/tests/unit/test_reader_academic.lua index cd6677a..8aba6e4 100644 --- a/tests/unit/test_reader_academic.lua +++ b/tests/unit/test_reader_academic.lua @@ -3,7 +3,7 @@ -- Unit tests for lib/reader_academic.lua -- Tests type-to-class mapping and dispatch structure (no Pandoc runtime needed) -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") diff --git a/tests/unit/test_reader_blocks.lua b/tests/unit/test_reader_blocks.lua index c7c5a7f..1f79906 100644 --- a/tests/unit/test_reader_blocks.lua +++ b/tests/unit/test_reader_blocks.lua @@ -3,7 +3,7 @@ -- Unit tests for lib/reader_blocks.lua -- Tests dispatch table structure and handler existence (no Pandoc runtime needed) -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") diff --git a/tests/unit/test_reader_inlines.lua b/tests/unit/test_reader_inlines.lua index 93a51c3..6b8d3f5 100644 --- a/tests/unit/test_reader_inlines.lua +++ b/tests/unit/test_reader_inlines.lua @@ -3,7 +3,7 @@ -- Unit tests for lib/reader_inlines.lua -- Tests pure string/table functions that don't require Pandoc runtime -PANDOC_SCRIPT_FILE = "codex.lua" +PANDOC_SCRIPT_FILE = "cdx.lua" local test = dofile("tests/unit/test_utils.lua") diff --git a/tests/unit/test_shared_utils.lua b/tests/unit/test_shared_utils.lua index a939ea0..6866fa0 100644 --- a/tests/unit/test_shared_utils.lua +++ b/tests/unit/test_shared_utils.lua @@ -155,10 +155,10 @@ print("") print("-- extension constant tests --") test.test("EXT_SEMANTIC constant") -test.assert_eq("codex.semantic", utils.EXT_SEMANTIC) +test.assert_eq("cdx.semantic", utils.EXT_SEMANTIC) test.test("EXT_ACADEMIC constant") -test.assert_eq("codex.academic", utils.EXT_ACADEMIC) +test.assert_eq("cdx.academic", utils.EXT_ACADEMIC) -- ============================================ -- Tests for theorem variant constants (Step 4d) diff --git a/tests/unit/test_utils.lua b/tests/unit/test_utils.lua index 167e936..7d3c98e 100644 --- a/tests/unit/test_utils.lua +++ b/tests/unit/test_utils.lua @@ -1,6 +1,6 @@ #!/usr/bin/env lua -- tests/unit/test_utils.lua --- Simple test framework for Codex Pandoc writer +-- Simple test framework for CDX Pandoc writer local M = {}