Commit Graph

78 Commits

Author SHA1 Message Date
d700040a0d Make country code parsing resilient to invalid cases 2022-10-11 01:39:53 +09:00
a9aba74351 Add markdown country flag support 2022-10-08 21:50:25 +03:00
098a56a784 Add custom container extension support 2022-10-08 21:25:11 +03:00
5e4e3dfc2c Fix markdown container not rendering certain text correctly 2022-09-10 02:55:20 +03:00
31a447fda0 Update parameter discards 2022-06-24 21:26:19 +09:00
34f1c80b7c Add and use ILinkHandler interface 2022-06-20 20:04:21 +02:00
f8830c6850 Automated #nullable processing 2022-06-17 16:37:17 +09:00
ed94266a5d change markdown container font 2021-08-03 22:14:44 +07:00
e4f13e311e override add auto link in text flow container 2021-07-10 17:58:00 +07:00
45ff28f83b add autolink constructor 2021-07-10 17:57:33 +07:00
50c27d2635 Update usages of IHasTooltip in line with framework localisation changes 2021-06-25 19:10:04 +02:00
5c3129f1a2 add font size in HeadingTextFlowContainer 2021-06-22 12:24:56 +07:00
f89c154e18 change GetFontSizeByLevel to return actual font size 2021-06-22 12:24:25 +07:00
28d7b06908 create OsuMarkdownImage 2021-06-10 09:38:07 +07:00
e8d4147773 Add missing null handling for never Markdig version 2021-06-07 16:08:44 +09:00
b4dd935538 add corner radius and padding 2021-06-01 14:14:12 +07:00
5108dadfbc use inline code in markdown text flow 2021-06-01 14:03:57 +07:00
1babb05fc7 add OsuMarkdownInlineCode 2021-06-01 14:03:31 +07:00
3ff97f787a Localise all URL generation for now to avoid weird Schedule logic 2021-06-01 13:56:59 +09:00
e02739a136 remove unused colour provider 2021-05-26 13:57:35 +07:00
04f16c0783 Set DocumentUrl inside CreateChildDependencies
Co-authored-by: Dean Herbert <pe@ppy.sh>
2021-05-26 13:55:16 +07:00
200592114f Make protected variables private 2021-05-26 14:13:02 +09:00
728258d93a add website root url as document url 2021-05-25 00:29:59 +07:00
02cdd0b2de use drawable link compiler in markdown link 2021-05-24 19:10:37 +07:00
bca5bee72e remove duplicate CreateSpriteText in OsuMarkdownTextFlowContainer 2021-05-10 19:28:32 +07:00
22677cfeaf add CreateBorder method in markdown table cell 2021-05-07 14:54:46 +07:00
d92e593ddd extract out table head and body border into separate component 2021-05-07 14:47:46 +07:00
64e9c5e9ba add return xmldoc in markdown unordered list 2021-05-07 14:41:27 +07:00
79a1d7b2b3 simplify CreateEmphasisedSpriteText 2021-05-07 14:40:01 +07:00
17b8963cf8 simplify CreateSpriteText in markdown table cell 2021-05-07 14:38:19 +07:00
3524cb7924 simplify CreateSpriteText in markdown heading 2021-05-07 14:36:35 +07:00
5b003750f8 change CreateListItem method in OsuMarkdownContainer 2021-05-07 13:20:48 +07:00
9233248a0b add OsuMarkdownUnorderedListItem 2021-05-07 13:20:20 +07:00
dfcf760b7b add OsuMarkdownOrderedListItem 2021-05-07 13:20:06 +07:00
bdfe44ddca change OsuMarkdownListItem to abstract class 2021-05-07 13:19:30 +07:00
92022f2cba add Separator component in OsuMarkdownSeparator 2021-05-06 17:17:14 +07:00
7b43730fe6 add QuoteBackground in OsuMarkdownQuoteBlock 2021-05-06 17:13:46 +07:00
010f625870 use derived component in OsuMarkdownFencedCodeBlock 2021-05-06 17:05:41 +07:00
ba634cbf11 change line spacing to 21
We use margin bottom in osu-web markdown paragraph[1] as reference for
this line spacing value.

The value from osu-web itself is 1.5em[2]. Because the base font size of
the paragraph is 14px[3][4], the actual value is 14 * 1.5 = 21px

[1] 376cac43a0/resources/assets/less/bem/osu-md.less (L230)
[2] 376cac43a0/resources/assets/less/variables.less (L58)
[3] 376cac43a0/resources/assets/less/bem/osu-md.less (L9)
[4] 376cac43a0/resources/assets/less/variables.less (L161)
2021-05-06 15:15:50 +07:00
e7c563fb67 simplify CreateTextFlow in quote block 2021-05-06 15:11:45 +07:00
b6560a616a add comment for base font size heading 2021-05-06 15:00:12 +07:00
0d3ca8dde1 change font weight of table header 2021-05-06 08:43:38 +07:00
550e6c0fbb change quote block margin padding to use vertical and horizontal 2021-05-06 08:28:37 +07:00
cfd28c51bb change block quote backgroudn width
Reference : 376cac43a0/resources/assets/less/base.less (L7-L10)
2021-05-06 08:28:37 +07:00
4567abe3db add xmldoc for GetTextMarker 2021-05-06 08:28:37 +07:00
9bb80492c5 add level and isOrdered parameter 2021-05-06 05:29:29 +07:00
99e0cc9bbe rename CreateTextMarker to GetTextMarker 2021-05-06 05:15:32 +07:00
3ddf551b03 remove unused this 2021-05-06 05:13:54 +07:00
266d8d8282 move list item constant position 2021-05-06 05:13:39 +07:00
63381ff4f2 change heading font weight
h1 and h2 : Semi Bold (600)
- 376cac43a0/resources/assets/less/bem/osu-md.less (L111)
- 376cac43a0/resources/assets/less/bem/osu-md.less (L135)

The rest of heading : Bold (700)
- 376cac43a0/resources/assets/less/bem/osu-md.less (L97)
2021-05-04 09:34:21 +07:00