Skip to content

Commit 8a73043

Browse files
authored
Client: enable markdown rendering (#804)
It integrates @a2ui/markdown-it as the markdown renderer for the contact sample. This resolves issues where markdown sytax (sch as `##` and `###` header) was displayed as plain text and ensures that links and button labels are correctly rendered as shown in the updated UI.
1 parent 15a73b7 commit 8a73043

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/client/angular/projects/contact/src/app/app.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
limitations under the License.
1515
*/
1616

17-
import { DEFAULT_CATALOG, provideA2UI } from '@a2ui/angular';
17+
import { DEFAULT_CATALOG, provideA2UI, provideMarkdownRenderer } from '@a2ui/angular';
18+
import { renderMarkdown } from '@a2ui/markdown-it';
1819
import { IMAGE_CONFIG } from '@angular/common';
1920
import {
2021
ApplicationConfig,
@@ -33,6 +34,7 @@ export const appConfig: ApplicationConfig = {
3334
catalog: DEFAULT_CATALOG,
3435
theme: theme,
3536
}),
37+
provideMarkdownRenderer(renderMarkdown),
3638
{
3739
provide: IMAGE_CONFIG,
3840
useValue: {

0 commit comments

Comments
 (0)