Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-11T14:48:44.000Z (2 months ago)
- Last Synced: 2024-10-31T17:38:29.596Z (about 2 months ago)
- Topics: julia, pandoc, pandoc-filter, pandoc-types
- Language: Julia
- Homepage: https://kdheepak.com/Pandoc.jl/
- Size: 433 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Pandoc.jl
[![Status](https://img.shields.io/github/actions/workflow/status/kdheepak/Pandoc.jl/test.yml?branch=main)](https://github.com/kdheepak/Pandoc.jl/actions)
[![Documentation](https://img.shields.io/badge/docs-ready-blue.svg)](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.
```