Skip to content

Commit

Permalink
fix: add support for markdown syntax in table cells
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Juengst committed Jul 10, 2023
1 parent 46c0e20 commit faa4153
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,27 @@ import { Component } from '@angular/core';
})
export class FlavoredMarkdownDemoComponent {
basicFlavoredMarkdown = `
## Checkboxes
## Checkboxes
- [x] My checkbox
- [x] My second checkbox
- [ ] My empty checkbox
- [x] My checkbox
- [x] My second checkbox
- [ ] My empty checkbox
## List
## List
+ One
+ subline
+ Two
+ Three
+ subline
+ second subline
+ One
+ subline
+ Two
+ Three
+ subline
+ second subline
## Table
|Connects to|With connector|
|-----------|--------------|
|VantageCloud Enterprise on Azure|Teradata-to-TeradataTo setup and configure the required PrivateLink endpoint on VantageCloud Enterprise, open a [PrivateLink change request](https://www.google.com) on the VantageCloud Enterprise customer support portal.|
|VantageCore (on-premises)|Teradata-to-Teradata|
|**This text is bolded**|*this text is italicized*|
`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ export interface ITdFlavoredMarkDownTableColumn {
<mat-header-cell *matHeaderCellDef mat-sort-header>{{
column.label
}}</mat-header-cell>
<mat-cell *matCellDef="let row">{{ row[column.name] }}</mat-cell>
<mat-cell *matCellDef="let row"
><td-markdown>{{ row[column.name] }}</td-markdown></mat-cell
>
</ng-container>
</ng-template>
<!-- Header and Row Declarations -->
Expand Down

0 comments on commit faa4153

Please sign in to comment.