enable markdown in config property descriptions and warnings

This commit is contained in:
Chris Guida
2021-04-01 17:39:58 -06:00
committed by Aiden McClelland
parent 3ff9b870cf
commit bf1c935667
2 changed files with 3 additions and 3 deletions

View File

@@ -11,14 +11,14 @@
<ion-item *ngIf="spec.description">
<ion-label class="ion-text-wrap">
<p><ion-text color="dark">Description</ion-text></p>
<p>{{ spec.description }}</p>
<p *ngIf="spec.description" [innerHTML]="spec.description | markdown"></p>
</ion-label>
</ion-item>
<!-- warning -->
<ion-item *ngIf="spec.changeWarning">
<ion-label class="ion-text-wrap">
<p><ion-text color="warning">Warning!</ion-text></p>
<p>{{ spec.changeWarning }}</p>
<p *ngIf="spec.changeWarning" [innerHTML]="spec.changeWarning | markdown"></p>
</ion-label>
</ion-item>
</ion-item-group>

View File

@@ -847,7 +847,7 @@ const mockApiAppConfig: ReqRes.GetAppConfigRes = {
'testnet': {
'name': 'Testnet',
'type': 'boolean',
'description': 'determines whether your node is running ontestnet or mainnet',
'description': '*Hello*, **Testing Markdown**. Lorem ipsum dolor si',
'changeWarning': 'Chain will have to resync!',
'default': false,
},