mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Cange richtext tags to be overridable by content (#4141)
This commit is contained in:
@@ -45,7 +45,7 @@ public sealed class MarkupTagManager
|
||||
continue;
|
||||
|
||||
var instance = (IMarkupTag)_sandboxHelper.CreateInstance(type);
|
||||
_markupTagTypes.Add(instance.Name.ToLower(), instance);
|
||||
_markupTagTypes[instance.Name.ToLower()] = instance;
|
||||
}
|
||||
|
||||
foreach (var (_, tag) in _markupTagTypes)
|
||||
|
||||
@@ -72,8 +72,7 @@ public sealed partial class FormattedMessage
|
||||
private static readonly Parser<char, List<MarkupNode>> Text =
|
||||
EscapeSequence.Or(Token(c => c != '[' && c != '\\'))
|
||||
.AtLeastOnceString()
|
||||
.Select(s => new MarkupNode(s))
|
||||
.Select(tag => new List<MarkupNode>{tag});
|
||||
.Select(s => new List<MarkupNode>{new(s)});
|
||||
|
||||
//Parses a string of letters or digits beginning with a letter
|
||||
private static readonly Parser<char, string> Identifier =
|
||||
|
||||
Reference in New Issue
Block a user