Improving formats conversion.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2021-06-06 16:07:09 -05:00
parent dbe6d3fc10
commit fe1a716173
3 changed files with 15 additions and 3 deletions

View File

@ -4,7 +4,7 @@ abilitiesAsWikiText
output := '' writeStream.
output
nextPutAll: '<ul style="list-style-type:none;">'; cr;
nextPutAll: (self abilitiesAsWikiTextFor: self currentAbilities);
nextPutAll: (self abilitiesAsWikiTextFor: self pendingAbilities);
nextPutAll: (self abilitiesAsWikiTextFor: self currentAbilities marked: '⬢');
nextPutAll: (self abilitiesAsWikiTextFor: self pendingAbilities marked: '⬡');
nextPutAll: '</ul>'.
^ output contents

View File

@ -0,0 +1,12 @@
utilities
abilitiesAsWikiTextFor: abilitiesSubset marked: unicodeSymbol
| aStream |
aStream := '' writeStream.
abilitiesSubset do: [:abi|
aStream
nextPutAll: ' <li> ', unicodeSymbol ; cr;
nextPutAll: ' ';
nextPutAll: ((WikiText new content: abi) convertMarkdownLinks); cr;
nextPutAll: ' </li>'; cr ].
^ aStream contents

View File

@ -1,3 +1,3 @@
accessing
asJsonTiddler
^ STON toStringPretty: self asTiddler asDictionary.
^ self asTiddler asJson