ruby-docx / docx

a ruby library/gem for interacting with .docx files
MIT License
431 stars 170 forks source link

add basic style definition #138

Closed miko53 closed 11 months ago

miko53 commented 1 year ago

Hello,

I see that style is not given for paragraph, If you want I propose a minimalist implementation of style. With it you can have the name of the style by paragraph.

The main API is style(), called for a paragraph it returns it style name. As the style are stored in document, I have added an API to access to document in paragraph class.

Can you review please ? Any suggestions are welcome !

Regards,