Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can you make list markers bold? #144

Open
trauber opened this issue Nov 28, 2020 · 0 comments
Open

How can you make list markers bold? #144

trauber opened this issue Nov 28, 2020 · 0 comments

Comments

@trauber
Copy link

trauber commented Nov 28, 2020

Maybe just an issue of my not understanding openxml enough.

The following code makes the first list item text bold, but not the list marker. How can this be accomplished?

 docx.ol do
    li 'First item' do bold true
      ol do
        li 'SubItem 1'
        li 'SubItem 2' do
          ol do
            li 'SubSubItem 1'
            li do
              text 'here', bold: true
              br
              text 'there'
            end 
            li 'SubSubItem 2'
          end
        end
      end
    end
    li 'Second item' do
      ol do
        li 'SubItem 1'
        li 'SubItem 2' do
          ol do
            li 'SubSubItem'
          end
        end
      end
    end
    li 'third item' do
      ol do
        li 'SubItem 1'
        li 'SubItem 2' do
          ol do
            li 'SubSubItem'
          end
        end
      end
    end
  end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant