New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose .Name and .Position within codeblock render hook #9574
Comments
So, the issue title makes this look easy, and I initial thought that, too, but this needs to be calculated. I have the byte offset from Goldmark, but there is a potential big diff in the source Goldmark sees and the original (considering front matter and shortcodes), so those offsets are not useful. Since this is (hopefully) only used for error situations, we could probably do a string search in the original source on demand. I agree that this would be useful. |
But note that this is not particulary fast and the recommendad usage is error logging only. Updates gohugoio#9574
I appended As to |
The |
But note that this is not particulary fast and the recommendad usage is error logging only. Updates gohugoio#9574
But note that this is not particulary fast and the recommendad usage is error logging only. Updates gohugoio#9574
But note that this is not particulary fast and the recommendad usage is error logging only. Updates gohugoio#9574
But note that this is not particulary fast and the recommendad usage is error logging only. Updates #9574
Closing this for now. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Primarily for using with
errorf
,erroridf
, andwarnf
. Of the two values,.Position
is the most important. Usage:The text was updated successfully, but these errors were encountered: