Improving formats conversion.
This commit is contained in:
parent
dbe6d3fc10
commit
fe1a716173
@ -4,7 +4,7 @@ abilitiesAsWikiText
|
|||||||
output := '' writeStream.
|
output := '' writeStream.
|
||||||
output
|
output
|
||||||
nextPutAll: '<ul style="list-style-type:none;">'; cr;
|
nextPutAll: '<ul style="list-style-type:none;">'; cr;
|
||||||
nextPutAll: (self abilitiesAsWikiTextFor: self currentAbilities);
|
nextPutAll: (self abilitiesAsWikiTextFor: self currentAbilities marked: '⬢');
|
||||||
nextPutAll: (self abilitiesAsWikiTextFor: self pendingAbilities);
|
nextPutAll: (self abilitiesAsWikiTextFor: self pendingAbilities marked: '⬡');
|
||||||
nextPutAll: '</ul>'.
|
nextPutAll: '</ul>'.
|
||||||
^ output contents
|
^ output contents
|
@ -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
|
@ -1,3 +1,3 @@
|
|||||||
accessing
|
accessing
|
||||||
asJsonTiddler
|
asJsonTiddler
|
||||||
^ STON toStringPretty: self asTiddler asDictionary.
|
^ self asTiddler asJson
|
Loading…
Reference in New Issue
Block a user