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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support link with column numbers in the markdown editor #29

Closed
acecilia opened this issue Aug 14, 2022 · 1 comment
Closed

Support link with column numbers in the markdown editor #29

acecilia opened this issue Aug 14, 2022 · 1 comment
Assignees

Comments

@acecilia
Copy link

Hi 馃憢

The ticket microsoft/vscode#40140 added support for following markdown links that specify local paths including line numbers.

Existing behaviour:

Given two files and their content:

a.md:

[b](./b.md#L3)

b.md:

1
2
3ABC
4
5

Clicking on link ./b.md#L3 in the markdown editor opens b.md with the cursor at the beginning of line 3.

Requested behaviour:

With this ticket I would liken to request support for adding also column numbers, so:

a.md:

[b](./b.md#L3C3)

b.md:

1
2
3ABC
4
5

Clicking on link ./b.md#L3C3 in the markdown editor should open b.md with the cursor position in line 3, letter B.

Thanks! 馃檹

@mjbvz mjbvz transferred this issue from microsoft/vscode Aug 17, 2022
@mjbvz
Copy link
Contributor

mjbvz commented Sep 16, 2022

This is actually already supported using the syntax: #L123,45 where 1 is the line number and 45 is the column number

Let me know if you don't see this working as expected!

@mjbvz mjbvz closed this as completed Sep 16, 2022
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

2 participants