mdfmt
mdfmt copied to clipboard
undefined: parser.ReadFrom
Can't seem to install mdfmt. Receiving error:
go/src/github.com/moorereason/mdfmt/main.go:64:15: undefined: parser.ReadFrom
Seems that hugo's parser API has changed and parser.ReadFrom no longer exists. Unfortunately, I don't have the bandwidth to dig into this further or contribute a fix at the moment.
Thanks for the report. You should be able to build mdfmt now since I've added go modules (thanks for that report, too). I've pinned the hugo module to a version prior to the API change. I'll leave this issue open as a reminder to update to the latest hugo API.
still getting this error. i used to have a workaround recipe but seem to have misplaced it
go get -u github.com/moorereason/mdfmt
# github.com/moorereason/mdfmt
go/src/github.com/moorereason/mdfmt/main.go:64:15: undefined: parser.ReadFrom
something like this seems to have worked
GO111MODULE=on go get -v github.com/moorereason/mdfmt
go version go1.12.10 linux/amd64