plugin/Markdow: Add bigger line spacing between elements + code block font is bigger (#45)

What's changed:
- Added line spacing 1.15 for paragraph and list elements
- Added line spacing 1.5 for headers
- Change code size from 1 to 2 (previously code was very small)
This commit is contained in:
Zbigniew Rębacz 2021-10-15 08:55:46 +02:00 committed by GitHub
parent 7c377c5719
commit e8203e8325
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ String sMarkdownContext::Compose(const Array<Block>& doc, int data, bool notext,
}
case MD_BLOCK_H:
{
txt << "[*;a20;b20;"
txt << "[*;a20;b20;pht300;"
<< clamp(6 - b.data.To<int>(), 1, 6)
<< " "
<< b.text
@ -132,7 +132,7 @@ String sMarkdownContext::Compose(const Array<Block>& doc, int data, bool notext,
}
case MD_BLOCK_OL:
{
txt << "[N! "
txt << "[N!;wt300; "
<< Compose(b.children, b.data, false, flags|BLOCK_IN_OLIST)
<< "&]";
break;
@ -154,11 +154,11 @@ String sMarkdownContext::Compose(const Array<Block>& doc, int data, bool notext,
case MD_BLOCK_P:
{
if(!b.level) {
txt << "[b20 " << b.text << " &]";
txt << "[b20;wt300 " << b.text << " &]";
}
else
if(notext && !i) {
txt << "[b20;l"
txt << "[b20;wt300;l"
<< b.level * ((flags & BLOCK_IN_QUOTE) ? 20 : 200)
<< ";i200;"
<< decode(data, '*', "OO ", '-', "O1 ", '+', "O2 ", "N1 ")
@ -166,7 +166,7 @@ String sMarkdownContext::Compose(const Array<Block>& doc, int data, bool notext,
<< "&]";
}
else {
txt << "[b20;l"
txt << "[b20;wt300;l"
<< b.level * ((flags & BLOCK_IN_QUOTE) ? 40 : 400)
<< ";O_ "
<< b.text
@ -179,7 +179,7 @@ String sMarkdownContext::Compose(const Array<Block>& doc, int data, bool notext,
{
txt << "{{10000;A20;B20;<"
<< b.level * ((flags & BLOCK_IN_QUOTE) ? 10 : 400)
<< ";@(250.250.250);F(230.230.230) [i10;C;1;@5;< "
<< ";@(250.250.250);F(230.230.230) [i10;C;2;@5;< "
<< b.text
<< " ]}}&";
break;