Improved character data

This commit is contained in:
2017-11-12 13:48:21 +01:00
parent b2c188d337
commit aadd4187a0
2 changed files with 10 additions and 2 deletions

View File

@ -16,5 +16,9 @@ component CharacterDetails(character *arn.Character)
each attribute in character.Attributes
tr.mountable(data-mountable-type="info")
td.character-attributes-name= attribute.Name + ":"
td.character-attributes-value= attribute.Value
if strings.Contains(attribute.Value, "<")
td.character-attributes-value!= markdown.Render(attribute.Value)
else
td.character-attributes-value= attribute.Value