Skip to content

Commit bc8dc7a

Browse files
hyperpolymathclaude
andcommitted
feat: add LuaRocks rockspec for pandoc-a2ml
Enables installation via `luarocks install pandoc-a2ml` once published. Packages the reader, writer, and filter as Lua modules. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0f8a6a3 commit bc8dc7a

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

pandoc-a2ml-scm-1.rockspec

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
-- SPDX-License-Identifier: MIT
2+
-- (PMPL-1.0-or-later preferred; MIT required for LuaRocks OSI-approved policy)
3+
--
4+
-- pandoc-a2ml-scm-1.rockspec — LuaRocks package spec for pandoc-a2ml.
5+
--
6+
-- Provides Pandoc reader, writer, and filter for A2ML (Attested Markup Language).
7+
8+
rockspec_format = "3.0"
9+
package = "pandoc-a2ml"
10+
version = "scm-1"
11+
12+
source = {
13+
url = "git://github.com/hyperpolymath/pandoc-a2ml.git",
14+
branch = "main",
15+
}
16+
17+
description = {
18+
summary = "Pandoc reader, writer, and filter for A2ML (Attested Markup Language)",
19+
detailed = [[
20+
pandoc-a2ml provides a custom Pandoc reader, writer, and filter for the
21+
A2ML (Attested Markup Language) format. A2ML is an attestation-native
22+
markup language designed for documents that carry trust metadata,
23+
cryptographic signatures, and provenance information.
24+
25+
Features:
26+
- Custom reader: parse .a2ml files into the Pandoc AST
27+
- Custom writer: render Pandoc AST back to .a2ml format
28+
- Filter: transform attestation directives within Pandoc pipelines
29+
- Preserves headings, directive blocks, inline formatting, and lists
30+
]],
31+
homepage = "https://github.com/hyperpolymath/pandoc-a2ml",
32+
license = "MIT",
33+
maintainer = "Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>",
34+
labels = { "pandoc", "a2ml", "markup", "filter", "reader", "writer", "attestation" },
35+
}
36+
37+
dependencies = {
38+
"lua >= 5.1",
39+
}
40+
41+
build = {
42+
type = "builtin",
43+
modules = {
44+
["pandoc-a2ml"] = "a2ml.lua",
45+
["pandoc-a2ml.reader"] = "a2ml-reader.lua",
46+
["pandoc-a2ml.writer"] = "a2ml-writer.lua",
47+
["pandoc-a2ml.filter"] = "a2ml-filter.lua",
48+
},
49+
copy_directories = {
50+
"docs",
51+
"examples",
52+
},
53+
}

0 commit comments

Comments
 (0)