-
Notifications
You must be signed in to change notification settings - Fork 31
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
Links to videos #60
Comments
I managed to do a release so I can now give you urls. This Notion page On this deployed page they all came out as embedded videos (no links) |
I confirm that no matter how the user enters the vimeo link (assume the same for youtube based on the code...), docu-notion always outputs Probably we want to embed (aka use ReactPlayer) only if the user embedded in Notion? Here's the relevant code:
|
Yes, that gets my vote (only if the user embedded it in Notion).
I am wondering if the code was changed to overcome the warning about
bookmarks going to Docusaurus links.
Jenni
*From:* andrew-polk ***@***.***
*Sent:* Wednesday, 2 August 2023 5:49 AM
*To:* sillsdev/docu-notion ***@***.***>
*Cc:* JenniBeadle ***@***.***>; Author ***@***.***>
*Subject:* Re: [sillsdev/docu-notion] Links to videos (Issue #60)
I confirm that no matter how the user enters the vimeo link (assume the
same for youtube based on the code...), docu-notion always outputs
<ReactPlayer controls url="https://{video.link}" />.
Probably we want to embed (aka use ReactPlayer) only if the user embedded
in Notion?
Here's the relevant code:
export const youtubeEmbed: IPlugin = {
name: "youtube",
regexMarkdownModifications: [
{
regex: /\[.*\]\((.*youtube\.com\/watch.*)\)/, //youtube.com/watch
imports: [`import ReactPlayer from "react-player";`],
replacementPattern: `<ReactPlayer controls url="$1" />`,
},
],
};
export const vimeoEmbed: IPlugin = {
name: "vimeo",
regexMarkdownModifications: [
{
regex: /\[.*\]\((https:\/\/.*vimeo.*)\)/,
// we use to have the following, but the above should handle
both the player an not-player urls.
//regex: /\[.*\]\((.*player\.vimeo.*)\)/gm, // player.vimeo
imports: [`import ReactPlayer from "react-player";`],
replacementPattern: `<ReactPlayer controls url="$1" />`,
},
],
};
—
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZ5F7HJ7K7QIXJVO3GMRHS3XTF2VTANCNFSM6AAAAAA27Z7STE>
.
You are receiving this because you authored the thread.Message ID: <
***@***.***>
|
fix: Use video player only for embedded videos (#60)
Describe the bug
Links to videos have changed in Notion. I used to be able to insert a clickable link to a video. Notion now embeds the video and shows a very large preview. How do I get back to the clickable link?
Reproduction Steps
Release[standardExternalLinkConversion] Found Notion "Bookmark" link. In Notion this would show as an embed. The best docu-notion can do at the moment is replace "Bookmark" with the actual URL: [https://vimeo.com/368328862](https://vimeo.com/368328862)
URL of a source Notion page that, when docu-notion accesses or converts it, shows the problem:
Since the release fails, I can't show a URL with the problem
At least one of these:
https://sillsdev.github.io/paratext-manual/2.OD
https://sillsdev.github.io/paratext-manual/9.GL (blank space)
https://www.notion.so/ltuse/2-Organising-your-desktop-629dc633009a45f8a2ad0618b99701a7
Expected behavior
Desired behaviour is clickable links to videos (with no previews) as shown in the manual.paratext.org site.
But if the bookmarks won't work then the vimeo link would be better.
The text was updated successfully, but these errors were encountered: