Skip to content

Commit

Permalink
Don’t show link underlines on card
Browse files Browse the repository at this point in the history
Signed-off-by: Asad Dhamani <[email protected]>
  • Loading branch information
dhamaniasad committed May 1, 2023
1 parent 7960d82 commit de50eaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class ObsidianRichLinksPlugin extends Plugin {
url: `http://iframely.server.crestify.com/iframely?url=${url}`,
}).then((res) => {
const data = JSON.parse(res);
const imageLink = data.links.find(value => value.type.startsWith("image/")).href || '';
const imageLink = data.links.find((value: { type: string; }) => value.type.startsWith("image/")).href || '';

editor.replaceSelection(`
<div class="rich-link-card-container"><a class="rich-link-card" href="${url}" target="_blank">
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-rich-links",
"name": "Rich Links",
"version": "1.1.0",
"version": "1.2.0",
"minAppVersion": "0.9.12",
"description": "Rich Links plugin for Obsidian.",
"author": "Asad Dhamani",
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
border-radius: 3px;
width: 100%;
display: flex;
text-decoration: none;
text-decoration: none !important;
background-color: var(--background-primary);
}

Expand Down

0 comments on commit de50eaa

Please sign in to comment.