Skip to content

Commit

Permalink
feat: reporter add code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 31, 2020
1 parent aaf1f07 commit 0681186
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
</div>
</div>
<div *ngIf="token.type === 'paragraph'">
<div class="language-{{token.lang}}">
{{token.text}}
</div>
</div>
<div *ngIf="token.type === 'code'">
<p>{{token.text}}</p>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class MarkdownReporterComponent implements OnInit, AfterViewInit {
}
break;
default:
console.log(token);
this.markdownData.push(token);
break;
}
Expand Down
4 changes: 4 additions & 0 deletions src/assets/docs/reporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@
| 持续集成 | 45.89% |
| 单元测试 | 55.39 |
| 编码规范 | 59.48% |

```javascript
console.log('hello, world');
```

0 comments on commit 0681186

Please sign in to comment.