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

sourcepos on links #64

Closed
timshannon opened this issue Sep 1, 2015 · 1 comment
Closed

sourcepos on links #64

timshannon opened this issue Sep 1, 2015 · 1 comment

Comments

@timshannon
Copy link

Is there a reason why we don't get data-sourcepos on links?

test [test](https://google.com)

Current get:
<p data-sourcepos="1:1-1:31">test <a href="https://google.com">test</a></p>
Would be nice to get:
<p data-sourcepos="1:1-1:31">test <a data-sourcepos="1:6-1:31" href="https://google.com">test</a></p>

@jgm
Copy link
Member

jgm commented Sep 1, 2015

We have only implemented sourcepos for block-level elements.
It would be a bit trickier to make it work for inline
elements. Because I think sourcepos tags aren't the way
to go anyway (see #29), I haven't put time into this.
Eventually we'll need a way of getting source maps for
all elements.

+++ Tim Shannon [Sep 01 15 14:06 ]:

Is there a reason why we don't get data-sourcepos on links?

test test

Current get:

test test

Would be nice to get:

test test


Reply to this email directly or [1]view it on GitHub.

References

  1. sourcepos on links #64

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