Skip to content

Commit 66693ab

Browse files
committed
Update documentation
1 parent 35d6817 commit 66693ab

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ a ruby library/gem for interacting with `.docx` files. currently capabilities in
1616

1717
requires ruby (tested with 2.1.1)
1818

19-
gem install docx
19+
gem 'bitops-docx', '~> 0.2.07'
2020

2121
### reading
2222

@@ -37,6 +37,17 @@ doc.bookmarks.each_pair do |bookmark_name, bookmark_object|
3737
end
3838
```
3939

40+
### rendering html
41+
``` ruby
42+
require 'docx'
43+
44+
# Retrieve and display paragraphs as html
45+
doc = Docx::Document.open('example.docx')
46+
doc.paragraphs.each do |p|
47+
puts p.to_html
48+
end
49+
```
50+
4051
### reading tables
4152

4253
``` ruby

0 commit comments

Comments
 (0)