https://github.com/kdheepak/pandoc.jl
Pandoc Interface and Types in Julia
https://github.com/kdheepak/pandoc.jl
julia pandoc pandoc-filter pandoc-types
Last synced: 3 months ago
JSON representation
Pandoc Interface and Types in Julia
- Host: GitHub
- URL: https://github.com/kdheepak/pandoc.jl
- Owner: kdheepak
- License: bsd-3-clause
- Created: 2019-07-29T21:14:08.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T14:48:44.000Z (9 months ago)
- Last Synced: 2025-04-10T09:12:56.440Z (3 months ago)
- Topics: julia, pandoc, pandoc-filter, pandoc-types
- Language: Julia
- Homepage: https://kdheepak.com/Pandoc.jl/
- Size: 433 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Pandoc.jl
[](https://github.com/kdheepak/Pandoc.jl/actions)
[](https://kdheepak.com/Pandoc.jl/)[Pandoc.jl](https://github.com/kdheepak/Pandoc.jl) is a package to make it easier to write filters for [Pandoc](https://github.com/jgm/pandoc) in Julia.
## Install
To install Pandoc.jl, open the Julia package manager prompt and type:
```julia
(v1.8) pkg> add Pandoc
```## Quick Start
```julia
julia> using Pandoc
```**Converter**
```julia
julia> run(Pandoc.Converter(input = raw"""
# This is a headerThis is a paragraph.
""")) |> printlnThis is a header
This is a paragraph.
```**Filter**
```julia
julia> doc = Pandoc.Document(raw"""
# This is a headerThis is a paragraph.
""")julia> for block in doc.blocks
if block isa Pandoc.Header
block.level += 1
end
endjulia> run(Pandoc.Converter(input = doc, to="markdown")) |> println
## This is a headerThis is a paragraph.
```