web/admin: rework markdown, correctly render Admonitions, fix links
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -259,7 +259,20 @@ export class OAuth2ProviderViewPage extends AKElement {
|
||||
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-12-col-on-xl pf-m-12-col-on-2xl"
|
||||
>
|
||||
<div class="pf-c-card__body">
|
||||
<ak-markdown .md=${MDProviderOAuth2}></ak-markdown>
|
||||
<ak-markdown
|
||||
.replacers=${[
|
||||
(input: string) => {
|
||||
if (!this.provider) {
|
||||
return input;
|
||||
}
|
||||
return input.replaceAll(
|
||||
"<application slug>",
|
||||
this.provider.assignedApplicationSlug,
|
||||
);
|
||||
},
|
||||
]}
|
||||
.md=${MDProviderOAuth2}
|
||||
></ak-markdown>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
|
Reference in New Issue
Block a user