web: Client-side MDX rendering (#13610)

* web: Allow build errors to propagate.

* web: Refactor MDX for client-side rendering.

* Remove override

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>

* revert css for links and tables

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* web: Move Markdown specific styles.

---------

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Teffen Ellis
2025-03-21 20:32:52 +01:00
committed by GitHub
parent 9538cf4690
commit 0b806b7130
28 changed files with 917 additions and 2431 deletions

12
web/src/global.d.ts vendored
View File

@ -2,18 +2,18 @@ declare module "*.css";
declare module "*.md" {
/**
* The HTML content of the markdown file.
* The serialized JSON content of an MD file.
*/
const html: string;
export default html;
const serializedJSON: string;
export default serializedJSON;
}
declare module "*.mdx" {
/**
* The HTML content of the markdown file.
* The serialized JSON content of an MDX file.
*/
const html: string;
export default html;
const serializedJSON: string;
export default serializedJSON;
}
declare namespace Intl {