added emphasis to run

This commit is contained in:
Dolan Miu
2016-03-30 04:30:58 +01:00
parent b81c3875a3
commit f7803b3156
3 changed files with 43 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import {XmlComponent, Attributes} from "../xml-components";
import {RunProperties} from "./properties";
import {Bold} from "./emphasis";
export class Run implements XmlComponent {
protected r: Array<XmlComponent>;
@ -11,5 +12,8 @@ export class Run implements XmlComponent {
this.r.push(this.properties);
}
bold(): Run {
this.properties.push(new Bold());
return this;
}
}