1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:52:56 +08:00
osu-lazer/osu.Game/Online/Chat
Bartłomiej Dach 24b7160522 Add support for parsing Markdown inline links
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.
2019-10-24 15:52:55 +02:00
..
Channel.cs Adjust namespaces 2019-02-21 19:05:52 +09:00
ChannelManager.cs formatting inspection 2 2019-08-08 09:02:09 +02:00
ChannelType.cs Update licence header (and remove year) 2019-01-24 17:43:03 +09:00
DrawableLinkCompiler.cs Move TooltipText to OsuClickableContainer 2019-05-21 13:51:38 +09:00
ErrorMessage.cs Move system user colour assignment to ensure consistency 2019-08-08 17:10:06 +09:00
ExternalLinkOpener.cs Adjust namespaces 2019-02-21 19:05:52 +09:00
InfoMessage.cs Fix remaining issues 2019-02-28 13:31:40 +09:00
LocalEchoMessage.cs Fix remaining issues 2019-02-28 13:31:40 +09:00
LocalMessage.cs Update licence header (and remove year) 2019-01-24 17:43:03 +09:00
Message.cs Remove unused property from chat message 2019-06-18 14:22:59 +09:00
MessageFormatter.cs Add support for parsing Markdown inline links 2019-10-24 15:52:55 +02:00
StandAloneChatDisplay.cs Fix formatting issue 2019-10-23 00:26:47 +09:00