1.0.1 • Published 5 years ago

markdown-it-church-slavonic v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Church Slavonic flavor of Markdown

Build Status Coverage Status

An extension to markdown-it engine that adds Church Slavonic syntax features.

Features

Use = to mark red (kinvar color)

=Слава и ныне=

Use + to mark wide text (stretched)

+Глас а+

Leading tilda makes first letter red

~Въ едину от суббот...

Leading circumflex makes first letter "bukvitsa"

^Въ едину от суббот...

Page anchors

When page label is the same as page number:

Господи помилуй<<1>>

When page label is different:

Господи помилуй<<1: а>>

Margin verse anchors

{{а}}Господи не введи меня в напасть. {{в}}Господи даждь мне мысль благу.

More to come

Programmatic use

var md = new require('markdown-it')();
var cuPlugin = require('markdown-it-chutch-slavonic');

md.use(cuPlugin);

var out = md.render('Hello, ~Red World')
console.log(out)

out = md.render('~Red World')
console.log(out)

out = md.render('~Ꙗ҆́кѡ помо́щница ты̀ ^є҆сѝ безпомо́щныхъ человѣ́кѡвъ')
console.log(out)

out = md.render('~Ꙗ҆́кѡ {{a}} помо́щница ты̀ ^є҆сѝ <<12>>безпомо́щ<<13: huh>>ныхъ человѣ́кѡвъ')
console.log(out)

Release notes

  • 1.0.0 Changed the way we markup kinovar and wide (to leave bold/italic alone)
  • 0.0.1 Initial release
1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.1

6 years ago