33a731a3d7
Add reuse licensing to files in lib
2021-09-15 13:06:43 +02:00
c81e539a76
StripMarkdownFormatting: Only consider '* ' as lists
...
If we let the space be optional then this picks up bold/italics as well.
Ideally, the stripMarkdown formatting could be made smarter, but I would
prefer to just rid of it in the future, and use the proper markdown
parser.
The only thing that is stopping me right now is performance. So in the
future when the stripped version is cached, this should be fine.
Fixes #420
2021-08-02 11:12:54 +02:00
215f12d4d8
MarkdownStrip: Support all languages
...
We were only supporting English, and even if we use the regexp \w, that
seems to only work for English and not all languages.
2020-06-19 13:09:25 +02:00
441202af48
StripMarkdownFormatting: Support new checklist format
2020-05-02 01:29:43 +02:00
64e3d36130
Improve stripMarkdown formatting
...
At some point this will need to be done in another thread.
2020-04-02 18:19:50 +02:00
1ff3075a1c
MicroOptimization: Avoid rebuilding the regexp
2020-03-19 23:38:12 +01:00
0d5793d097
strip_markdown: Use a handbuilt stripper
...
It's not perfect, but it runs faster at about 35 us vs 650 us.
2020-02-17 15:51:37 +01:00
3fd801b4a1
Fix "Value not in range: -1" error
...
Fixes #4
2019-05-29 17:34:47 +02:00
ad2e4ac9b1
Rename markdownToPlainText -> stripMarkdownFormatting
...
It better reflects what the function actually does
2019-05-13 22:57:49 +02:00
f2af5c9c75
Improve markdown to text conversion
...
Use a proper markdown parser to convert the text. This way more of the
formatting is correctly removed.
2019-05-13 22:36:32 +02:00