This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- jsonld.lua | |
-- | |
-- Copyright (c) 2017-2018 Albert Krewinkel, Robert Winkler | |
-- | |
-- This program is free software; you can redistribute it and/or modify it | |
-- under the terms of the GNU public license version 2 or later. | |
-- See the LICENSE file for details. | |
-- USAGE: | |
-- The filters cito.lua and scholarly-metadata.lua must be run before this filter. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dkjson = require 'dkjson' | |
List = require 'pandoc.List' | |
utils = require 'pandoc.utils' | |
CitationOrig = pandoc.Citation | |
-- monkey-patch citation creation | |
pandoc.Citation = function(id, mode, prefix, suffix, note_num, hash) | |
local res = CitationOrig(id, mode, prefix, suffix, note_num, hash) | |
setmetatable( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- don't do anything unless we target latex | |
if FORMAT ~= "latex" then | |
return {} | |
end | |
local List = require'pandoc.List' | |
local function latex(str) | |
return List:new{pandoc.RawInline('latex', str)} | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"definitions": { | |
"Attr": { | |
"type": "array", | |
"items": [ | |
{"type": "string"}, | |
{"type": "array", "items": {"type": "string"}}, | |
{ | |
"type": "array", |
NewerOlder