Skip to content

Commit

Permalink
Remove unneeded comment and golint
Browse files Browse the repository at this point in the history
  • Loading branch information
jessp01 committed Nov 10, 2023
1 parent 495f2da commit 34fa8f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mdtopdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type PdfRenderer struct {
Theme Theme
BackgroundColor Color
documentMatter ast.DocumentMatters // keep track of front/main/back matter.
Extensions parser.Extensions
Extensions parser.Extensions
}

// SetLightTheme sets theme to 'light'
Expand Down Expand Up @@ -339,8 +339,6 @@ func (r *PdfRenderer) Run(content []byte) error {
s = []byte(r.unicodeTranslator(string(s)))
}

// exts := parser.CommonExtensions // parser.OrderedListStart | parser.NoEmptyLineBeforeBlock
// exts := parser.NoIntraEmphasis | parser.Tables | parser.FencedCode | parser.Autolink | parser.Strikethrough | parser.SpaceHeadings | parser.HeadingIDs | parser.BackslashLineBreak | parser.DefinitionLists
p := parser.NewWithExtensions(r.Extensions)
doc := markdown.Parse(s, p)
_ = markdown.Render(doc, r)
Expand Down

0 comments on commit 34fa8f6

Please sign in to comment.