Eugene Sandulenko
ed4ec96b44
GRAPHICS: MACGUI: Fix links with Unicode characters
...
If there are unicode characters in the link, it was leading to
wrong length calculation.
Example of such link:
{w=10em}
The problem is that for simplicity, we are working with UTF8 in
Markdown, but still with U32String in MacTextCanvas. This led to
the string length be calculated for UTF8, which is a multibyte
encoding. As a result, we were overshooting the link parsing
and reading texts as numbers.
This is kind of a hacky solution: we convert text to U32 before
caluclating the string length
2024-01-07 00:39:25 +01:00
Eugene Sandulenko
7e4c81e1ff
GRAPHICS: MACGUI: Pass image extensions from Markdown to MacTextCanvas
2023-10-31 22:55:09 +01:00
Eugene Sandulenko
6683a75954
COMMON: FORMATS: Pass image extensions to the user callbacks in Markdown
2023-10-31 01:58:55 +01:00
Eugene Sandulenko
ec986dfb59
GRAPHICS: MACGUI: Mark table headers as bold in Markdown
2023-10-14 01:54:05 +02:00
Eugene Sandulenko
0a32c7901c
GRAPHICS: MACGUI: Properly pass table cell alignment from Markdown to MacText
2023-10-14 01:54:05 +02:00
Eugene Sandulenko
cbe7954370
GRAPHICS: MACGUI: Fix regression in list processing in MacText
2023-09-26 18:16:32 +02:00
Eugene Sandulenko
358bbe93cc
GRAPHICS: MACGUI: More work on digesting tables in MacText
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
6de2d6c8d2
GRAPHICS: MACGUI: Fix headre rendering in Markdown
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
5a706831c2
GRAPHICS: MACGUI: Pass Markdown tables to MacText
2023-09-25 23:30:38 +02:00
Eugene Sandulenko
494f6389b5
GRAPHICS: MACGUI: Improved debug output for Markdown
2023-09-25 23:30:32 +02:00
Eugene Sandulenko
6109f08cfb
GRAPHICS: MACGUI: Implemented codespan rendering in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
152feb0f46
GRAPHICS: MACGUI: Properly pass link URLs from Markdown to MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
01263461a5
GRAPHICS: MACGUI: Fix bullet lists indentation in the Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
49ef52079c
GRAPHICS: MACGUI: Improved blockcode rendering in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
efdc9c3193
GRAPHICS: MACGUI: More rebust debug output in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c9a123b45a
GRAPHICS: MACGUI: Implemented rendering for blockcode and raw_html_tag in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
1a6ad65f17
GRAPHICS: MACGUI: Added crash on raw html tags processing in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c668169636
GRAPHICS: MACGUI: Encode images into MacText from Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
03a758c3b1
GRAPHICS: MACGUI: Proper indentation of bullet lists in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
c147f4ee5f
GUI: Indent list items in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
2df991721d
GRAPHICS: MACGUI: Added initial code for indentaiton in MacText
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
e237634777
COMMON: Turn sd_markdown into a class
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ce8a0456db
COMMON: Reduce Common:: namespace pollution by Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
fe0fbe5cff
COMMON: Make Markdown return Common::String
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
9de6c06d9d
GRAPHICS: MACGUI: Simplified buffer manipulation in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
6044980b2d
GRAPHICS: MACGUI: Paint links blue in MarkDown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
1e6d7db76e
GRAPHICS: MACGUI: Added one more ident level for lists in Marcdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
4033c0f869
GRAPHICS: MACGUI: Implemented nested list processing in MarkDown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f12386adea
COMMON: FORMATS: Catch list start in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
85a492e039
GRAPHICS: MACGUI: Properly reset font slant on end of formatting
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
a314def2cc
GRAPHICS: MACGUI: Added Header formatting, synced with stripFormatting(), fixed closing formatting
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ee7573b222
GRAPHICS: MACGUI: Marked Markdown parts with STUB and started real rendering
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
027e3794d3
GRAPHICS: MACGUI: implemented italic and bold Markdown output
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
d69a9689cc
GRAPHICS: MACGUI: fix printing out of debug info in Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
bbc6dbcd10
GRAPHICS: MACGUI: Properly grow buffer for Markdown
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
f6ffcf3c82
GRAPHICS: MACGUI: Implemented stubs for Markdown parser
2023-09-17 00:56:28 +02:00
Eugene Sandulenko
ce04c4b309
GRAPHICS: MACGUI: Initial stub for MacText::setMarkdownText()
2023-09-17 00:56:28 +02:00