@@ -159,7 +159,7 @@ func TestTruncateWordsByRune(t *testing.T) {
159159
160160func TestGetHTMLRendererFlags (t * testing.T ) {
161161 c := newTestContentSpec ()
162- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
162+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
163163 renderer := c .getHTMLRenderer (blackfriday .HTML_USE_XHTML , ctx )
164164 flags := renderer .GetFlags ()
165165 if flags & blackfriday .HTML_USE_XHTML != blackfriday .HTML_USE_XHTML {
@@ -186,7 +186,7 @@ func TestGetHTMLRendererAllFlags(t *testing.T) {
186186 {blackfriday .HTML_SMARTYPANTS_LATEX_DASHES },
187187 }
188188 defaultFlags := blackfriday .HTML_USE_XHTML
189- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
189+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
190190 ctx .Config .AngledQuotes = true
191191 ctx .Config .Fractions = true
192192 ctx .Config .HrefTargetBlank = true
@@ -209,7 +209,7 @@ func TestGetHTMLRendererAllFlags(t *testing.T) {
209209
210210func TestGetHTMLRendererAnchors (t * testing.T ) {
211211 c := newTestContentSpec ()
212- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
212+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
213213 ctx .DocumentID = "testid"
214214 ctx .Config .PlainIDAnchors = false
215215
@@ -233,7 +233,7 @@ func TestGetHTMLRendererAnchors(t *testing.T) {
233233
234234func TestGetMmarkHTMLRenderer (t * testing.T ) {
235235 c := newTestContentSpec ()
236- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
236+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
237237 ctx .DocumentID = "testid"
238238 ctx .Config .PlainIDAnchors = false
239239 actualRenderer := c .getMmarkHTMLRenderer (0 , ctx )
@@ -257,7 +257,7 @@ func TestGetMmarkHTMLRenderer(t *testing.T) {
257257
258258func TestGetMarkdownExtensionsMasksAreRemovedFromExtensions (t * testing.T ) {
259259 c := newTestContentSpec ()
260- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
260+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
261261 ctx .Config .Extensions = []string {"headerId" }
262262 ctx .Config .ExtensionsMask = []string {"noIntraEmphasis" }
263263
@@ -272,7 +272,7 @@ func TestGetMarkdownExtensionsByDefaultAllExtensionsAreEnabled(t *testing.T) {
272272 testFlag int
273273 }
274274 c := newTestContentSpec ()
275- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
275+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
276276 ctx .Config .Extensions = []string {"" }
277277 ctx .Config .ExtensionsMask = []string {"" }
278278 allExtensions := []data {
@@ -304,7 +304,7 @@ func TestGetMarkdownExtensionsByDefaultAllExtensionsAreEnabled(t *testing.T) {
304304
305305func TestGetMarkdownExtensionsAddingFlagsThroughRenderingContext (t * testing.T ) {
306306 c := newTestContentSpec ()
307- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
307+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
308308 ctx .Config .Extensions = []string {"definitionLists" }
309309 ctx .Config .ExtensionsMask = []string {"" }
310310
@@ -316,7 +316,7 @@ func TestGetMarkdownExtensionsAddingFlagsThroughRenderingContext(t *testing.T) {
316316
317317func TestGetMarkdownRenderer (t * testing.T ) {
318318 c := newTestContentSpec ()
319- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
319+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
320320 ctx .Content = []byte ("testContent" )
321321 actualRenderedMarkdown := c .markdownRender (ctx )
322322 expectedRenderedMarkdown := []byte ("<p>testContent</p>\n " )
@@ -327,7 +327,7 @@ func TestGetMarkdownRenderer(t *testing.T) {
327327
328328func TestGetMarkdownRendererWithTOC (t * testing.T ) {
329329 c := newTestContentSpec ()
330- ctx := & RenderingContext {RenderTOC : true , Cfg : c .cfg , Config : c .NewBlackfriday () }
330+ ctx := & RenderingContext {RenderTOC : true , Cfg : c .cfg , Config : c .BlackFriday }
331331 ctx .Content = []byte ("testContent" )
332332 actualRenderedMarkdown := c .markdownRender (ctx )
333333 expectedRenderedMarkdown := []byte ("<nav>\n </nav>\n \n <p>testContent</p>\n " )
@@ -342,7 +342,7 @@ func TestGetMmarkExtensions(t *testing.T) {
342342 testFlag int
343343 }
344344 c := newTestContentSpec ()
345- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
345+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
346346 ctx .Config .Extensions = []string {"tables" }
347347 ctx .Config .ExtensionsMask = []string {"" }
348348 allExtensions := []data {
@@ -371,7 +371,7 @@ func TestGetMmarkExtensions(t *testing.T) {
371371
372372func TestMmarkRender (t * testing.T ) {
373373 c := newTestContentSpec ()
374- ctx := & RenderingContext {Cfg : c .cfg , Config : c .NewBlackfriday () }
374+ ctx := & RenderingContext {Cfg : c .cfg , Config : c .BlackFriday }
375375 ctx .Content = []byte ("testContent" )
376376 actualRenderedMarkdown := c .mmarkRender (ctx )
377377 expectedRenderedMarkdown := []byte ("<p>testContent</p>\n " )
0 commit comments