Skip to content

Add view-markdown-source feature - #1873

Merged
fregante merged 11 commits into
masterfrom
view-markdown-source
Mar 27, 2019
Merged

fregante merged 11 commits into
masterfrom
view-markdown-source

Conversation

@fregante

@fregante fregante commented Mar 22, 2019 •

Copy link
Copy Markdown
Member

Comment thread source/libs/fetch-dom.ts
return selector ? dom.querySelector(selector) : dom;
}

export default fetchDom;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be reused in other parts of RGH too. doma is almost only used for this purpose in RGH.

@sindresorhus

Copy link
Copy Markdown
Member

When I click the source button, the "Display the source blob" tooltip get's stuck and never disappears.

@sindresorhus

Copy link
Copy Markdown
Member

Would be nice if the URL had line references, it would automatically go to the source view. Example: https://github.com/avajs/ava/blob/master/readme.md#L41-L51

@sindresorhus

Copy link
Copy Markdown
Member

This feature is super useful!

@fregante

fregante commented Mar 24, 2019 •

Copy link
Copy Markdown
Member Author

Even copy-on-y works!

@sindresorhus sindresorhus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good to merge when added to the readme. 👌

@JonathanTM

Copy link
Copy Markdown

I think this is broken by recent changes. Sad face.

@kidonng

kidonng commented Jun 27, 2020

Copy link
Copy Markdown
Member

@JonathanTM #3282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Add ability to view and link to Markdown source

4 participants