Commit graph

81 commits

Author SHA1 Message Date
Laura Hausmann
220c4b776d
[parsing] Add visibility:local search query filter (ISH-707) 2025-03-04 23:18:00 +01:00
Laura Hausmann
4a4c674776
[parsing] Add note visibility search query type (ISH-707) 2025-03-04 23:06:09 +01:00
Laura Hausmann
8d9856fd62
[parsing] Migrate SearchQuery parser to C# 2025-01-08 17:33:31 +01:00
Laura Hausmann
00e157cc7e
[parsing] Switch to MfmSharp 2024-12-06 18:14:00 +01:00
Laura Hausmann
112d6affd0
[parsing/mfm] Improve urlNode(Brackets) performance & reliability, improve performance of long inputs for some node types 2024-11-27 20:50:54 +01:00
Laura Hausmann
5a3d4b9bb4
[parsing/mfm] Improve aggregateText & aggregateTextInline performance 2024-11-27 05:46:25 +01:00
Laura Hausmann
bd56788542
[parsing/mfm] Optimize restOfLineContains case for single char, remove unnecessary pushLine/assertLine calls 2024-11-27 04:53:24 +01:00
Laura Hausmann
92c6e01988
[parsing/mfm] Only trigger recursion depth update once per recursion 2024-11-27 04:53:24 +01:00
Laura Hausmann
6d04870c50
[parsing/mfm] Reuse error messages 2024-11-27 04:53:24 +01:00
Laura Hausmann
59ab914f0a
[parsing/mfm] Further limit recursion depth to 20 2024-11-27 04:53:24 +01:00
Laura Hausmann
556ada822f
[parsing/mfm] Emit special node type when the parser times out 2024-11-27 04:53:24 +01:00
Laura Hausmann
753fbdefe4
[parsing/mfm] Check if the rest of the stream contains a closing tag before parsing asymmetric nodes 2024-11-27 04:53:24 +01:00
Laura Hausmann
a342e3df25
[parsing/mfm] Fail & fall back to text node when parsing takes more than 500ms (backend) / 2000ms (wasm) 2024-11-27 04:53:23 +01:00
Laura Hausmann
19f5c2d74e
[parsing/mfm] Fall back to MfmTextNode when the parser fails 2024-11-27 04:53:23 +01:00
Laura Hausmann
c84156e946
[parsing] Fix DoS caused by quirk in FParsec's many1Till (ISH-637)
Ref: https://github.com/stephan-tolksdorf/fparsec/issues/111
2024-11-26 04:18:54 +01:00
Laura Hausmann
aa593f78b8
[parsing/mfm] Limit inline node recursion to 100 2024-11-26 00:18:52 +01:00
Laura Hausmann
b9be67302c
[parsing] Fix silent link nodes 2024-11-21 16:52:30 +01:00
Laura Hausmann
a18c1c59ea
[parsing] Fix compatibility with the new F# reference type nullability checks 2024-11-18 19:02:41 +01:00
Laura Hausmann
e3bce3bc0e
[sln] Update dependencies to their latest non-preview versions (where available) 2024-11-18 19:02:41 +01:00
Laura Hausmann
2ef78e3f41
[parsing] Add strike html tag support, keep italic/bold/strike in html tag form when reserializing 2024-11-17 16:44:05 +01:00
Laura Hausmann
e2004f5472
[parsing] Add parenthesis tracking to MfmUrlNode and MfmLinkNode parsers (ISH-608) 2024-11-16 15:03:54 +01:00
Laura Hausmann
9ca2deba67
[backend/parsing] Drastically improve MFM parser performance
This commit improves MFM parser performance by up to 22x, depending on input and platform.
2024-11-16 02:01:29 +01:00
Laura Hausmann
a29720b536
[parsing] Fix inline nodes being marked as block nodes 2024-11-11 05:41:28 +01:00
Laura Hausmann
2b046fc444
[parsing] Add support for has:media search query 2024-11-11 01:52:48 +01:00
Laura Hausmann
c969265e61
[parsing] Allow digits in mfm fn node function names 2024-11-11 00:39:16 +01:00
Laura Hausmann
3f28a586a5
[parsing] Require whitespace in front of mfm italic nodes using asterisk or underscore delimiters
This ensures matching behavior with mfm.js
2024-11-11 00:10:12 +01:00
pancakes
16f617b1e2
[parsing/mfm] Add simple MFM parser 2024-11-08 03:07:37 +01:00
Laura Hausmann
33098f2186
[parsing] Remove outdated comment 2024-11-08 03:07:33 +01:00
Laura Hausmann
aea5efd012
[parsing] Add support for italic and bold segments surrounded by underscores (ISH-585) 2024-11-05 22:54:02 +01:00
Laura Hausmann
5349346f52
[parsing/mfm] Fix incorrect handling of lists 2024-10-24 22:42:09 +02:00
Laura Hausmann
0f22bbdbcb
[parsing] Add cw search filter expression (ISH-517) 2024-10-19 03:00:43 +02:00
Laura Hausmann
fa81be967a
[parsing] Add support for advanced MFM (ISH-257) 2024-10-19 02:37:46 +02:00
Laura Hausmann
f98d9ce711
[sln] Bump dependencies 2024-10-09 05:57:22 +02:00
Laura Hausmann
c02af726e1
[parsing/mfm] Rework codeblock node parsing & serialization 2024-09-26 01:12:21 +02:00
Laura Hausmann
5b3dec0a08
[parsing/mfm] Further improve codeblock newline handling 2024-09-26 00:37:25 +02:00
Laura Hausmann
0fc667527f
[parsing/mfm] Fix handling of newlines surrounding code blocks 2024-09-26 00:33:26 +02:00
Laura Hausmann
b773876028
[parsing/mfm] Fix mentions in parentheses not getting parsed correctly 2024-09-25 23:51:28 +02:00
Laura Hausmann
afe62b0aab
[sln] Code cleanup 2024-09-13 21:44:31 +02:00
Laura Hausmann
5889f3cd26
[parsing] Code cleanup 2024-09-07 02:12:35 +02:00
Laura Hausmann
4ee4fd53c4
[parsing] Add support for MfmQuoteNode 2024-09-07 01:38:23 +02:00
Laura Hausmann
4f332391bc
[sln] Update dependency versions 2024-08-19 02:28:36 +02:00
Laura Hausmann
e1d25a9231
[parsing] Support <i> and <b> tags for bold/italic nodes (ISH-438) 2024-08-02 17:13:50 +02:00
Laura Hausmann
d0be98911c
[sln] Apply consistent xml styling in csproj/fsproj files 2024-07-15 20:19:30 +02:00
Laura Hausmann
c5d15a6c9a
[sln] Update dependencies 2024-07-15 19:03:48 +02:00
Laura Hausmann
b626ecd5f3
[sln] Extract common build properties into Directory.Build.props 2024-07-09 21:48:15 +02:00
Laura Hausmann
d7d2f6efd7
[parsing] Apply formatting rules 2024-06-29 01:08:50 +02:00
Laura Hausmann
1d02bd7119
[backend/core] Add in:interactions search query filter, allow multiple from: filters 2024-06-17 20:41:09 +02:00
Laura Hausmann
1f29ad99c7
[parsing] Support punycode mentions 2024-06-17 01:19:20 +02:00
Laura Hausmann
a7dcfbe75a
[parsing] Allow termination of mention nodes with any character except : 2024-06-13 22:06:39 +02:00
Laura Hausmann
1e0fd2efda
[parsing] Allow termination of mentions with the question mark character 2024-06-11 16:27:23 +02:00