Skip to content
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

.getFullStartLineNumber() ? #1531

Open
noqcks opened this issue Apr 23, 2024 · 0 comments
Open

.getFullStartLineNumber() ? #1531

noqcks opened this issue Apr 23, 2024 · 0 comments

Comments

@noqcks
Copy link

noqcks commented Apr 23, 2024

I can get a code block and surrounding comments context with .getFullText() (line numbers added by me for this example)

3 
4 // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'high... Remove this comment to see the full error message
5 import hljs from 'highlight.js/lib/core'

when I do .getStartLineNumber() I get back 5. Is there any way to get the start line of the full surrounding context i.e 3 in this case?

using .getStartLineNumber(true) still results in 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant