iainbrighton / PScribo

PowerShell documentation framework
MIT License
231 stars 35 forks source link

Word Headings 4/5 not outputing correctly #59

Closed jbruett closed 6 years ago

jbruett commented 6 years ago

Version 0.7.18.87

$doc = document -name 'testdoc' {
    TOC -Name 'contents'
    section -name 'heading1' -style Heading1 {
        section -name 'heading2' -style Heading2 {
            section -name 'heading3' -style Heading3 {
                section -name 'heading4' -style Heading4 {
                    section -name 'heading5' -style Heading5 {}
            }
        }
    }
}

$doc | export-document -format word -path c:\users\jbruett\desktop\ 

produces the output in this file: testdoc.docx

HTML formatting is fine.

iainbrighton commented 6 years ago

Yeah - there are only 3 styles defined in the default document. I'll need to add Heading4 and Heading5 styles.

iainbrighton commented 6 years ago

@jbruett thanks for your contribution 😃.