mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
24b7160522
Extend the Markdown parsing regex to allow parsing so-called inline links. Within the parenthesis () part of the Markdown URL syntax, introduce a new capturing group: ( \s+ // whitespace between actual URL and inline title (?<title> // start of "title" named group "" // opening double quote (doubled inside @ string) ( [^""] // any character but a double quote | // or (?<=\\) // the next character should be preceded by a \ "" // a double quote )* // zero or more times "" // closing double quote ) )? // the whole group is optional This allows for parsing the inline links as-provided by web. Correctness is displayed by the passing tests. |
||
---|---|---|
.. | ||
Channel.cs | ||
ChannelManager.cs | ||
ChannelType.cs | ||
DrawableLinkCompiler.cs | ||
ErrorMessage.cs | ||
ExternalLinkOpener.cs | ||
InfoMessage.cs | ||
LocalEchoMessage.cs | ||
LocalMessage.cs | ||
Message.cs | ||
MessageFormatter.cs | ||
StandAloneChatDisplay.cs |