all repos — grayfriday @ fe4544053176400393962e5360ab95caa94b859d

blackfriday fork with a few changes

Fix inline style
Anirudh Oppiliappan x@icyphox.sh
Sat, 26 Nov 2022 08:58:59 +0530
commit

fe4544053176400393962e5360ab95caa94b859d

parent

4170cc12d47178d054742ca80a4c719041f0d978

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M html.gohtml.go

@@ -616,12 +616,12 @@ escapeHTML(w, node.LinkData.Title)

} switch { case node.LinkData.Width != 0 && node.LinkData.Height != 0: - r.out(w, []byte(fmt.Sprintf(`" style="width:%dpx height:%dpx`, + r.out(w, []byte(fmt.Sprintf(`" style="width:%dpx; height:%dpx;`, node.LinkData.Width, node.LinkData.Height))) case node.LinkData.Width != 0: - r.out(w, []byte(fmt.Sprintf(`" style="width:%dpx`, node.LinkData.Width))) + r.out(w, []byte(fmt.Sprintf(`" style="width:%dpx;`, node.LinkData.Width))) case node.LinkData.Height != 0: - r.out(w, []byte(fmt.Sprintf(`" style="height:%dpx`, node.LinkData.Height))) + r.out(w, []byte(fmt.Sprintf(`" style="height:%dpx;`, node.LinkData.Height))) } r.out(w, []byte(`" />`)) }
M readmereadme

@@ -11,7 +11,7 @@ in blackfriday for an en-dash).

• Optional image width/height. For example: ![foo image](http://example.com/bar.png){400x800} This renders as: - <p><img src="http://example.com/bar.png" alt="foo style="width:400 height:800" /></p> + <p><img src="http://example.com/bar.png" alt="foo style="width:400px; height:800px;" /></p> INSTALL