Skip to content

Commit 3dff8e5

Browse files
authored
Update README.md
Fix typos
1 parent 3bbddfe commit 3dff8e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Introduction: Markdown to PDF
88
This package depends on two other packages:
99
- The [gomarkdown](https://github.com/gomarkdown/markdown) parser to read the markdown source
10-
- The `fpdf` packace to generate the PDF
10+
- The `fpdf` package to generate the PDF
1111

1212
Both of the above are documented at [Go Docs](http://godocs.org).
1313

@@ -47,7 +47,7 @@ This is a planned fix; [see here](https://github.com/mandolyte/mdtopdf/issues/1)
4747

4848
5. Definition lists are not supported (not sure that markdown supports them -- I need to research this)
4949

50-
6. The following text features may be tweaked: font, size, spacing, styile, fill color, and text color. These are exported and available via the `Styler` struct. Note that fill color only works if the text is ouput using CellFormat(). This is the case for: tables, codeblocks, and backticked text.
50+
6. The following text features may be tweaked: font, size, spacing, style, fill color, and text color. These are exported and available via the `Styler` struct. Note that fill color only works when using `CellFormat()`. This is the case for: tables, codeblocks, and backticked text.
5151

5252
7. Tables are supported, but no attempt is made to ensure fit. You can, however, change the font size and spacing to make it smaller. See example.
5353

@@ -155,7 +155,7 @@ $ go run md2pdf.go -i /path/to/md \
155155
156156
## Using non-ASCII Glyphs/Fonts
157157
158-
In order to use a non-ASCII language there are a number things that must be done. The PDF generator must be configured WithUnicodeTranslator:
158+
In order to use a non-ASCII language there are a number things that must be done. The PDF generator must be configured with `WithUnicodeTranslator`:
159159
160160
```go
161161
// https://en.wikipedia.org/wiki/Windows-1251
@@ -164,7 +164,7 @@ pf := mdtopdf.NewPdfRenderer("", "", *output, "trace.log", mdtopdf.WithUnicodeTr
164164
165165
In addition, this package's `Styler` must be used to set the font to match that is configured with the PDF generator.
166166
167-
A complete working example may be found for Russian in the `cmd` folder nameed
167+
A complete working example may be found for Russian in the `cmd` folder named
168168
`russian.go`.
169169
170170
For a full example, run:

0 commit comments

Comments
 (0)