UNIT6-open / TemplateEngine.Docx

Smart docx template engine for .NET
Other
408 stars 136 forks source link

Styled content? #56

Open etodanik opened 5 years ago

etodanik commented 5 years ago

I need to replace the field with styled (bold, italic, e.t.c) content. I have the ability to convert my content to an OpenXML string. For example:

<w: pxmlns: w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"><w: r><w: txml: space="preserve">Thisisjust</w: t></w: r><w: r><w: rPr><w: b/></w: rPr><w: txml: space="preserve">arandom</w: t></w: r><w: r><w: txml: space="preserve">pargraph</w: t></w: r></w: p>

However, I can't figure out how to replace the placeholder with that styled content.