• Stars
    star
    239
  • Rank 168,763 (Top 4 %)
  • Language
    OCaml
  • License
    GNU Affero Genera...
  • Created about 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Another Emacs Org-mode and Markdown parser.

Mldoc

Another Org-mode and Markdown parser implemented using OCaml and Angstrom. It’s based on mlorg which is a high quality Org-mode parser written by Simon Castellan.

Who’s using Mldoc?

  • Logseq, a local-first notes app (In development)

Build

# compile
make

# run test
make test

Run utop

cd lib
dune utop

Usage

For Javascript users

# install mldoc
npm install -g mldoc

# convert org mode file to html
mldoc convert -i ./test.org -o ./test.html

# convert markdown mode file to html
mldoc convert -i ./test.markdown -o ./test.html

For OCaml users

# compile
make

# convert org file to html
_build/default/bin/main.exe ./test.org -o ./test.html

Invoke utop in Emacs

opam config exec -- dune utop lib -- -emacs

Parsing todos [12/12]

Heading [7/7]

  1. [X] level
  2. [X] marker
  3. [X] priority
  4. [X] title
  5. [X] tags
  6. [X] stats
  7. [X] footnote

Markup (Inline) [14/14]

  1. [X] Latex fragment
  2. [X] timestamp
  3. [X] entity
  4. [X] macro
  5. [X] statistics cookie
  6. [X] footnote reference
  7. [X] link
  8. [X] direct link
  9. [X] target
  10. [X] verbatim
  11. [X] code
  12. [X] nested emphasis [4/4]
    1. [X] bold
    2. [X] underline
    3. [X] italic
    4. [X] strike_through
  13. [X] subscript
  14. [X] superscript

Table [2/2]

  1. [X] preliminary support
  2. [X] column groups

List [3/3]

  1. [X] Unordered list
  2. [X] Ordered list
  3. [X] Definition list

Directive

Block [5/5]

  1. [X] src
  2. [X] quote
  3. [X] example
  4. [X] custom
  5. [X] block nested in block

Comment

Drawer

Not exported.

Horizontal

Latex environment

Quoting

TOC

Export [2/2]

  1. [X] json
  2. [X] html

More Repositories

1

logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
Clojure
32,717
star
2

awesome-logseq

Awesome Logseq resources created by the community <3
2,260
star
3

logseq-plugin-samples

Logseq plugin samples for beginner 🌱
CSS
308
star
4

marketplace

A centralized packages manager for Logseq marketplace plugins.
JavaScript
253
star
5

publish-spa

A github action and CLI to publish logseq graphs as a SPA app
Clojure
217
star
6

git-auto

A Simple Shell Script To Do Git Commit And Push Automatically
Shell
181
star
7

nbb-logseq

nbb with features enabled for logseq
Clojure
140
star
8

publish

JavaScript
130
star
9

docs

Logseq documentation
Clojure
127
star
10

graph-validator

Validate your logseq graphs
Clojure
48
star
11

awesome-logseq-cn

31
star
12

rdf-export

Export a logseq graph to RDF
Clojure
29
star
13

plugins

Documentation site of Logseq plugins
HTML
19
star
14

deprecated-github-backend

Clojure
18
star
15

bb-tasks

Reusable babashka tasks used by logseq team
Clojure
17
star
16

rsapi

Logseq's rsapi: Encryption, Sync.
Rust
16
star
17

sqlite-db

SQLite integration via WASM
C
12
star
18

sites

Logseq home page
CSS
11
star
19

logseq-cn

Logseq 中文资料库
8
star
20

handbooks

Handbooks resources for Logseq.
Clojure
5
star
21

capacitor-file-sync

Logseq Sync capacitor plugin for iOS and Android
Swift
5
star
22

datahike-rs

Experimental datahike native binding
JavaScript
5
star
23

logseq-extension-example

An example Logseq extension that showcases Logseq's API
JavaScript
3
star
24

Ranker

Ranker is the home for prioritizing and tracking issues and feature requests. We pull in tickets from GitHub and discussions from Discourse, and use algorithm to rank requests so the most important features get built first.
Python
3
star
25

AgeEncryption

Age Encryption
Rust
2
star
26

logseq.github.io

https://docs.logseq.com
HTML
2
star