emphatis v0.2.1 Emphatis
The module providing basic markdown-like syntax parsing to unicode representations involving different fonts to show the input emphasized in plain text environments (like twitter.)
Link to this section Summary
Link to this section Functions
Link to this function
bold(input)
Possible variants:
π: :bolddigits_mathematical_bold_digit_five
π: :boldsymbols_mathematical_bold_capital_a
π΄: :italicsymbols_mathematical_italic_capital_a
π¨: :bolditalicsymbols_mathematical_bold_italic_capital_a
π: :doublestruckdigits_mathematical_double_struck_digit_five
πΈ: :doublestrucksymbols_mathematical_double_struck_capital_a
π»: :monospacedigits_mathematical_monospace_digit_five
π°: :monospacesymbols_mathematical_monospace_capital_a
Examples
iex> Emphatis.bold "Hello, world, itβs 2018!"
"πππ₯π₯π¨, π°π¨π«π₯π, π’πβπ¬ ππππ!"
Link to this function
bold_italic(input)
Link to this function
bold_script(input)
Link to this function
double_struck(input)
Link to this function
fraktur(input)
Link to this function
italic(input)
Link to this function
main(args)
Link to this function
monospace(input)
Link to this function
process(arg1)
Link to this function
sans_serif(input)
Link to this function
sans_serif_bold(input)
Link to this function
sans_serif_bold_italic(input)
Link to this function
sans_serif_italic(input)
Link to this function
yo!(input)
Please note that not all the font conversions work for digits.
Examples
iex> Emphatis.yo! "*Hello, world, itβs 2018!*"
"πππ₯π₯π¨, π°π¨π«π₯π, π’πβπ¬ ππππ!"
iex> Emphatis.yo! "*Hello,* _world_, itβs =2018=!"
"πππ₯π₯π¨, π€ππππ, itβs ππππ !"
iex> Emphatis.yo! "/Hello/, #world#, itβs #2018#!"
"π―ππππ, ππΈπ»π΅π, itβs 2018!"
iex> Emphatis.yo! "`Hello, world`, itβs ~2018~!"
"π·ππππ, π ππππ, itβs 2018!"
iex> Emphatis.yo! "~Hello, world,~ itβs 2018!"
"Hπ’π©π©π¬, π΄π¬π―π©π‘, itβs 2018!"
iex> Emphatis.yo! "=Hello, world, itβs 2018=!"
"Hππππ , π¨π π£ππ, ππ₯βπ€ ππππ !"