Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

alexpdp7/pandocsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I'm not really using this nowadays, so I'm not maintaining it, really. https://github.com/alexpdp7/pandoc_datalog is what I will focus on when I have some bandwith.

pandocsql

This is a Pandoc filter to do stuff with SQL.

If you use it like:

$ pandoc README.md -F pandocsql -o README.html

, tables defined in the document will not appear in the output; however they will be dumped into an SQLite database...

code description priority
Q1 Banana 7
B2 Apple 1
R7 Orange 3

Table: table_1

And you can run queries which will be displayed as tables:

select *
from table_1
order by priority desc

You can see further examples in the examples folder.

Installation

$ pipx install git+https://github.com/alexpdp7/pandocsql.git

Development

$ pandoc README.md -t json | poetry run pandocsql | pandoc -f json -o README.pdf

About

Embed and execute SQL in Markdown

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages