Skip to content

Commit

Permalink
feat(render): #12 add html to element
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 3, 2020
1 parent ad45b85 commit 8418bdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/presentation/ledge-helper/ledge-helper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export class LedgeHelperComponent implements OnInit {
## [Link in Heading](https://devops.phodal.com/design)
<a href="https://www.phodal.com/">phodal.com</a>
----
\`\`\`list-style
Expand Down
6 changes: 5 additions & 1 deletion src/app/shared/ledge-render/ledge-render.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@ export class LedgeRenderComponent implements OnInit, AfterViewInit, OnChanges {
text: inline,
});
break;
case 'hr':
this.markdownData.push(token);
break;
case 'html':
return token.text;
default:
console.log(token);
this.markdownData.push(token);
break;
}
Expand Down

0 comments on commit 8418bdf

Please sign in to comment.