Commit graph

120 commits

Author SHA1 Message Date
GnoxNahte
782635f07f Update to 1.2.6 2024-12-24 13:01:25 +08:00
GnoxNahte
5dfe565e03 Close #21 Add fallback when there is no internet connection 2024-12-24 12:56:42 +08:00
GnoxNahte
8e2d4f0ae7 Fix #20. Ignore embedding svg. 2024-12-18 22:21:47 +08:00
GnoxNahte
ffe1b0b811
Update bug report issue template
Remove the required version input. Since most users will most likely be using the latest version. However, keep it in case someone isn't using it.
2024-10-30 18:00:08 +08:00
GnoxNahte
aade69e545 Update to 1.2.4
Also add markdown code block for as a default value for issues at the "Sample Markdown" section.
2024-10-28 20:57:14 +08:00
GnoxNahte
1d7c3f6295 Fix #20 Add better support for detecting images that the plugin shouldn't embed. 2024-10-28 20:31:06 +08:00
GnoxNahte
f1e59d2e78 Fix #19. Add better support for detecting urls 2024-10-28 20:30:12 +08:00
GnoxNahte
2bcd822147 Update to 1.2.3
Also clean up some logs
2024-10-23 22:57:34 +08:00
GnoxNahte
f8b3bc59dd Add #17: Add Instagram embed 2024-10-23 18:55:48 +08:00
GnoxNahte
73e9255990 Update to 1.2.2 2024-09-26 23:23:11 +08:00
GnoxNahte
b993ff0469 Fix bug for title not showing if the website doesn't have a title (When using Auto link title)
Uses the default fallback title instead.
2024-09-26 23:22:20 +08:00
GnoxNahte
a606bab6ee Modify README: Update preview video 2024-09-26 12:15:48 +08:00
GnoxNahte
9f0f954927 Add issue templates 2024-09-21 22:00:51 +08:00
GnoxNahte
25b813f52b Add a feature to link the title for the default fallback
Also fix a bug, removes the bottom padding when there is no link.
2024-09-21 12:27:30 +08:00
GnoxNahte
87f93d0e02 Fix web images not showing up for some situations 2024-09-20 11:17:14 +08:00
GnoxNahte
ae72048f93 Update CHANGELOG.md
Link the issues
2024-09-20 00:08:04 +08:00
GnoxNahte
49b9c319b2 Update to 1.2.1 2024-09-19 23:57:49 +08:00
GnoxNahte
b987461c8e Fix #15. Embed Twitter profile timelines
Note: It doesn't work with non-verified accounts
2024-09-19 23:26:20 +08:00
GnoxNahte
0aa7b19d35 Fix #14. Don't embed web images 2024-09-19 23:24:42 +08:00
GnoxNahte
bac75210b3 Fix #10, Fix #11. Changed how the plugin embeds it, where the embed is placed.
Also changed and cleaned up some css for the alt img
2024-09-19 23:23:40 +08:00
GnoxNahte
5f6a947bd4 Don't embed x.com on Obsidian versions 1.7.0 and above
Obsidian changelog 1.7.0: https://obsidian.md/changelog/2024-08-08-desktop-v1.7.0/
2024-09-18 08:53:07 +08:00
GnoxNahte
3ec8922f2e Fix #9 where embeds aren't collapsed when in a collapsed bullet list. 2024-09-16 09:13:24 +08:00
GnoxNahte
46378a81b2 Fix #8 and other small changes to fallback embed
- If it's an error embed, just return the element without adding the placeholder.
- Add loading spinning animation.
- Fix opacity animation not working for fallback embed
2024-09-16 08:44:18 +08:00
GnoxNahte
d033541b23
Add download badge 2024-09-08 11:12:03 +08:00
GnoxNahte
10413275d1 Remove duplicated css, Add padding for fallback embed link 2024-09-08 09:41:16 +08:00
GnoxNahte
ccc3e720c4 Update to version 1.2.0
This update fixes: https://github.com/GnoxNahte/obsidian-auto-embed/issues/7

This commit also fixes some minor bugs:
- enable twitter by default.
- limits embed width, mostly for small screens.
2024-09-07 15:35:09 +08:00
GnoxNahte
e9104a0d47 Add an option for suggesting to embed when pasting links. 2024-09-07 13:52:34 +08:00
GnoxNahte
51f7eddf8f Fix extra line below embed not showing 2024-09-07 13:51:20 +08:00
GnoxNahte
c3cfd70668 Redo setting classes for embeds container and embeds
Clean up classes made from 87225856d6. It had duplicate classes on the container and embed.
This commit cleans up that. Now only the container has the class that identifies the type of embed

Also fix various css bugs caused by the container being the embed's parent
2024-09-07 13:51:04 +08:00
GnoxNahte
c3ee60ee66 Add github badges to README 2024-09-05 23:27:50 +08:00
GnoxNahte
87225856d6 Add placeholder when loading and a click to load option 2024-09-05 23:27:14 +08:00
GnoxNahte
05d963ad2e Merge branch 'main' of https://github.com/GnoxNahte/obsidian-auto-embed 2024-08-25 21:13:23 +08:00
GnoxNahte
e0cae5611b Some foundation for preload options
Switching computers
2024-08-25 21:13:21 +08:00
GnoxNahte
04a21a21b3 Add options to disable selected websites and other minor bugs
Minor bugs & additions:
- When the user is on the line to edit the embed and presses down, it'll go straight to the next line instead of the side of the embed. (Changed display to inline). However, if the user presses right when they are on the last character of the line, it'll still go to the side of the embed (still not fixed)
- Add Imgur album support
2024-08-25 21:12:48 +08:00
GnoxNahte
46afb610dd
Add a workaround for Reddit share links not being supported. 2024-08-04 10:46:17 +08:00
GnoxNahte
6278a072ca Modify changelog 2024-07-18 21:34:33 +08:00
GnoxNahte
831e2bebd2 Update to 1.1.3 2024-07-18 21:31:07 +08:00
GnoxNahte
4e27bb0e05 Fix #6
Also add a default height for tiktok to prevent cumulative layout shift
2024-07-18 20:32:48 +08:00
GnoxNahte
e3fa470975 Update to 1.1.2
Also slightly modify README.md
2024-07-17 20:29:38 +08:00
GnoxNahte
d0e18dd8bd Minor fix
Remove console output
2024-07-17 20:06:31 +08:00
GnoxNahte
7c9d25c9e9 Fix #5. Now the plugin will not embed any internal links/images 2024-07-17 20:05:45 +08:00
GnoxNahte
db4fc8e37f Change some docs (README, CHANGELOG, Supported website list) 2024-07-14 19:53:12 +08:00
GnoxNahte
ca12faa75d Cache the size for embeds that have dynamic sizes (Imgur, Reddit, TikTok, Twitter/X)
Hopefully it should improve [Cumulative Layout Shift](https://web.dev/articles/cls) for embeds that were loaded previously.

Also fixes https://github.com/GnoxNahte/obsidian-auto-embed/issues/4#issuecomment-2226989583 which was caused by TikTok not sending the resize message sometimes, especially if the time between each request is very short.
2024-07-14 12:03:21 +08:00
GnoxNahte
7c29dd1398 Update to 1.1.1 2024-07-13 20:03:26 +08:00
GnoxNahte
b55a7c4a8e Add SoundCloud songs embeds #3 2024-07-13 19:49:36 +08:00
GnoxNahte
57224373f6 Fix reddit not resizing properly
- Remove auto size setting since it's not needed.
- Modify README to remove the reddit resizing warning and also other minor changes
- Added comments to separate the different websites in styles.css.
- Slightly clean up TikTok's embed code, following cleanup in Reddit's code
2024-07-13 19:21:38 +08:00
GnoxNahte
b47ca410b4 Add TikTok embeds. #4 2024-07-13 13:07:19 +08:00
GnoxNahte
c17f8acd47 Update to 1.1.0
Increment minor version because the features for the fallback (unsupported websites) embed is mostly done.
2024-07-07 11:23:41 +08:00
GnoxNahte
75a277717d Modify README
Add info on how it will work if the user uses a unsupported website.
2024-07-07 11:14:46 +08:00
GnoxNahte
ab264df823 Change setting for "Adding default embed link" to "Setting default embed link text"
Allows the user to set default text for the link.
2024-07-07 10:48:06 +08:00