Closed bep closed 5 years ago
Thanks @bep, I'll look at it. I haven't used dep mgmt in go other than glide, but I thought I followed the docs. Sorry about that.
Just an update, turns out I was using godep
(https://github.com/tools/godep#how-to-use-godep-with-a-new-project) and not go dep
(https://github.com/golang/dep). Updating now, will continue with changes tonight hopefully.
Looking into it some this morning, this pkg really did do a major version change, looks like all of the public render methods are now private, so I'm going to have to figure out a way around that, but it'll def. be a blocker for moving to blackfriday v2.0.0.
They have basically one RenderNode
method now, but you can switch on the types. Maybe get some inspiration here:
👍 just saw that as I was looking at how they're doing it. It'll still take some time, but that def. makes it better (and probably a better API anyways).
I've been working on a rewrite for using channels & AST, so this seems like something that'd dovetail into that. I'm going to reopen the issue you created and deprecate the v2.0.0 branch since it's not working and probably roll all of the work to convert in with the AST parser work I'm doing.
No rush. I'm struggling with exactly the same trying to get Hugo over to the new API. The goorgeous import is just one of many temporary commented out sections ... When people open up an issue about "Hugo should update to Blackfriday v2" I suspect they think the amount of work is changing some import statement.
So it's been about a year, but I don't see any more recent commits?
I had a branch I was getting ready to PR into Hugo this week that fixed this (no more dependency on Black Friday), but it looks like @niklasfasching PR'ed a new org parser, so I'm closing all the issues here, deprecating and archiving goorgeous.
Your v2 tag still uses the old API, i.e.
blackfriday.HtmlRenderer
vs the newblackfriday.HTMLRenderer
etc.Probably not related, but you seem to use a very old version of Go Dep. They changed to a TOML file format a year ago.