Giter Site home page Giter Site logo

esthor / obsidian-link-embed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seraphli/obsidian-link-embed

0.0 1.0 0.0 1.71 MB

This plugin allow you to convert URLs in your notes into embeded previews.

License: MIT License

JavaScript 4.93% TypeScript 50.82% CSS 44.25%

obsidian-link-embed's Introduction

Obsidian Link Embed

This plugin allows you to convert URLs in your notes into embedded previews.

This is how it looks.

demo

Usage

The easiest way to use is by pasting your link and then creating an embed preview.

Additionally, there are three ways to pass the URL to this plugin.

  1. Selecting the URL you want to parse

If nothing is selected

  1. Put your cursor within the URL text that you want to parse

Or

  1. Copy the URL into the clipboard

Then

  • Open the command Palette
  • Select the command Link Embed: Embed link

In case some parsers are not working, you can also use the Link Embed: Embed link with ... to specify one parser.

Settings

You can change the default parser in the plugin settings.

And In Place means the selection in the editor will be removed.

The embedded preview will always be inserted into the next line.

Here is the table comparing the supported parsers.

Parser Speed Stable Desc Length Limitation
JSONLink ** * *** Unlimited
MicroLink(Default) *** *** ** 50/day
Iframely ** ** * 1000/month

Thanks

Example results from different parsers

Example 1

https://arxiv.org/abs/2202.08434

JSONLink

{
	"title": "[2202.08434] A Survey of Explainable Reinforcement Learning",
	"image": "https://static.arxiv.org/icons/twitter/arxiv-logo-twitter-square.png",
	"description": "Explainable reinforcement learning (XRL) is an emerging subfield of\nexplainable machine learning that has attracted considerable attention in\nrecent years. The goal of XRL is to elucidate the decision-making process of\nlearning agents in sequential decision-making settings. In this survey, we\npropose a novel taxonomy for organizing the XRL literature that prioritizes the\nRL setting. We overview techniques according to this taxonomy. We point out\ngaps in the literature, which we use to motivate and outline a roadmap for\nfuture work.",
	"url": "https://arxiv.org/abs/2202.08434"
}

MicroLink

{
	"title": "A Survey of Explainable Reinforcement Learning",
	"image": "https://static.arxiv.org/icons/twitter/arxiv-logo-twitter-square.png",
	"description": "Explainable reinforcement learning (XRL) is an emerging subfield of\nexplainable machine learning that has attracted considerable attention in\nrecent years. The goal of XRL is to elucidate the decision-making process of\nlearning agents in sequential decision-making settings. In this survey, we\npropos…",
	"url": "https://arxiv.org/abs/2202.08434"
}

Iframely

{
	"title": "A Survey of Explainable Reinforcement Learning",
	"image": "https://static.arxiv.org/icons/twitter/arxiv-logo-twitter-square.png",
	"description": "Explainable reinforcement learning (XRL) is an emerging subfield of explainable machine learning that has attracted considerable attention in recent years. The goal of XRL is to elucidate the...",
	"url": "https://arxiv.org/abs/2202.08434"
}

Example 2

https://www.redblobgames.com/articles/visibility/

JSONLink

{
	"title": "2d Visibility",
	"image": "https://www.redblobgames.com/articles/visibility/static-lightmap.png?2012-05-21-15-55-03",
	"description": "In a 2D top-down map it is sometimes useful to calculate which areas are visible from a given point. For example you might want to hide what’s not visible from the player’s location, or you might want to know what areas would be lit by a torch.",
	"url": "https://www.redblobgames.com/articles/visibility/"
}

MicroLink

{
	"title": "2d Visibility",
	"image": "https://www.redblobgames.com/favicon.ico",
	"description": "In a 2D top-down map it is sometimes useful to calculate which areas are visible from a given point. For example you might want to hide what’s not visible from the player’s location, or you might want to know what areas would be lit by a torch.",
	"url": "https://www.redblobgames.com/articles/visibility/"
}

Iframely

{
	"title": "2d Visibility",
	"image": "https://www.redblobgames.com/favicon.ico",
	"description": "",
	"url": "https://www.redblobgames.com/articles/visibility/"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.