Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mdigger/goldmark-lang-typographer

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mdigger/goldmark-lang-typographer

  • v1.0.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

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.

CodeLangDoubleSingleDash
afAfrikaans
sqAlbanian„“
amAmharic«»‹›
arArabic«»
hyArmenian«»
azAzerbaijani«»
euBasque«»
beBelarusian«»--
bsBosnian””’’
bgBulgarian„“’’
caCatalan«»
zh-HansChinese, simplified
hrCroatian„”
csCzech„“‚‘
daDanish»«›‹
nlDutch
enEnglish
en-GBEnglish, UK
en-USEnglish, US
en-CAEnglish, Canada
eoEsperanto
etEstonian„“
filFilipino
fiFinnish””’’
frFrench« »‹ ›
fr-CHFrench, Swiss«»‹›
glGalician«»
kaGeorgian„“
deGerman„“‚‘
de-CHGerman, Swiss«»‹›
elGreek«»
heHebrew””’’
hiHindi
huHungarian„”’’
isIcelandic„“‚‘
ioIdo«»
idIndonesian
iaInterlingua
gaIrish
itItalian«»
it-CHItalian, Swiss«»‹›
kkKazakh«»
kmKhmer«»
koKorean, South Korea
loLao
lvLatvian
ltLithuanian„“‚‘
mkMacedonian„“’‘
mtMaltese
mn-CyrlMongolian, Cyrillic script«»
noNorwegian«»
ocOccitan«»
psPashto«»
faPersian«»
plPolish„”
pt-BRPortuguese, Brazil
pt-PLPortuguese, Portugal«»
roRomanian„”
rmRomansh«»‹›
ruRussian«»--
srSerbian„”’’
gdScottish Gaelic
skSlovak„“‚‘
slSlovene„“‚‘
wenSorbian„“‚‘
esSpanish«»
svSwedish””’’
taTamil
tiTigrinya«»‹›
thThai
trTurkish
ukUkrainian«»--
urUrdu
ugUyghur«»‹›
uzUzbek«»‚‘
viVietnamese
cyWelsh

FAQs

Package last updated on 20 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc