Closed ooker777 closed 8 months ago
You can using regex content replacement.
Yes, but why not make it easier for users by having this as a feature?
No. You can share the settings and let user get it.
can you explain more on why this shouldn't be a feature? Or how about adding this to the docs?
Obsidian allows using the same Markdown syntax as external images to embed YouTube videos and Twitter tweets (official docs):
Can you automatically convert it to this?
Here is the regex:
/\!\[.*\]\(https:\/\/.*(youtube\.com|youtu\.be)\/(.*).*\)/
<iframe width="560" height="315" src="https://www.youtube.com/embed/$2" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>