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

Feature image markdown #14

Merged
merged 8 commits into from
May 15, 2024
Merged

Feature image markdown #14

merged 8 commits into from
May 15, 2024

Conversation

chizuo
Copy link
Collaborator

@chizuo chizuo commented May 11, 2024

When the mouse is hovering over an image, the Stardown menu will add an additional option to create markdown syntax of the image using the source url from the page.

I've added an additional feature of having Stardown create a notification that the markdown was successfully created. Where in the case of the image, it provides the name of the image which is extrapolated from its filename.

Changes to content.js was necessary on the selection side to address the message object I was sending vs the string literal being used by selection, so the type that the onMessage method was receiving was a consistent data type.

This PR will close issue#13

@chizuo chizuo added the enhancement New feature or request label May 11, 2024
@chizuo chizuo requested a review from wheelercj May 11, 2024 01:43
@chizuo chizuo self-assigned this May 11, 2024
@chizuo chizuo linked an issue May 11, 2024 that may be closed by this pull request
Copy link
Collaborator

@wheelercj wheelercj left a comment

Choose a reason for hiding this comment

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

This looks great! There are a few things here that I didn't know were possible.

I like how the notifications are used. The extension icon's tiny green checkmark was easy to miss when using the context menu.

@wheelercj wheelercj merged commit f830a41 into main May 15, 2024
@wheelercj wheelercj deleted the feature-image-markdown branch May 15, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create markdown when hovering over image
2 participants