Giter Site home page Giter Site logo

mdigger / goldmark-lang-typographer Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 16 KB

Typographer allows you to select the language typographic substitutions for Goldmark Typographer.

License: MIT License

Go 100.00%
golang goldmark goldmark-extension typographer typograph quotation-marks markdown

goldmark-lang-typographer's Introduction

Goldmark Typographer Language Extension

Go Reference

Package typographer allows you to select the language typographic substitutions for Goldmark Typographer.

This library is not a replacement of the standard Goldmark typography, and only expands its capabilities by adding quotation symbols for different languages.

import typographer "github.com/mdigger/goldmark-lang-typographer"

markdown := goldmark.New(
    goldmark.WithExtensions(
        typographer.New("ru"),
    ),
)

Quotation marks substitution

Quotes substitutions based on Wikipedia. If the substitutions for this language are not specified, the library tries to use substitutions for the base language or default.

Code Lang Double Single Dash
af Afrikaans
sq Albanian „“
am Amharic «» ‹›
ar Arabic «»
hy Armenian «»
az Azerbaijani «»
eu Basque «»
be Belarusian «» --
bs Bosnian ”” ’’
bg Bulgarian „“ ’’
ca Catalan «»
zh-Hans Chinese, simplified
hr Croatian „”
cs Czech „“ ‚‘
da Danish »« ›‹
nl Dutch
en English
en-GB English, UK
en-US English, US
en-CA English, Canada
eo Esperanto
et Estonian „“
fil Filipino
fi Finnish ”” ’’
fr French « » ‹ ›
fr-CH French, Swiss «» ‹›
gl Galician «»
ka Georgian „“
de German „“ ‚‘
de-CH German, Swiss «» ‹›
el Greek «»
he Hebrew ”” ’’
hi Hindi
hu Hungarian „” ’’
is Icelandic „“ ‚‘
io Ido «»
id Indonesian
ia Interlingua
ga Irish
it Italian «»
it-CH Italian, Swiss «» ‹›
kk Kazakh «»
km Khmer «»
ko Korean, South Korea
lo Lao
lv Latvian
lt Lithuanian „“ ‚‘
mk Macedonian „“ ’‘
mt Maltese
mn-Cyrl Mongolian, Cyrillic script «»
no Norwegian «»
oc Occitan «»
ps Pashto «»
fa Persian «»
pl Polish „”
pt-BR Portuguese, Brazil
pt-PL Portuguese, Portugal «»
ro Romanian „”
rm Romansh «» ‹›
ru Russian «» --
sr Serbian „” ’’
gd Scottish Gaelic
sk Slovak „“ ‚‘
sl Slovene „“ ‚‘
wen Sorbian „“ ‚‘
es Spanish «»
sv Swedish ”” ’’
ta Tamil
ti Tigrinya «» ‹›
th Thai
tr Turkish
uk Ukrainian «» --
ur Urdu
ug Uyghur «» ‹›
uz Uzbek «» ‚‘
vi Vietnamese
cy Welsh

goldmark-lang-typographer's People

Contributors

mdigger avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.