Comments (7)
Hi,
I tested the suggestion of @yoshinorin and it works fine:
https://github.com/tomap/hexo-theme-minidyne-demo/pull/4/files
I added the size and controls otherwise you cannot play it
It works fine:
https://deploy-preview-4--hexo-theme-minidyne-demo.netlify.com/2010/07/07/old-post-7/
If you still cannot use the video, In suggest you open an issue in the right place:
https://github.com/hexojs/hexo/issues
Your issue has nothing to do with markdown rendering
And I suspect your issue is that you are trying to display amazon prime videos, which ight not be allowed by their platform :)
I'm closing the issue.
Regards
from hexo-renderer-marked.
How about this ?
hexo.extend.tag.register('video', function(args){
return `<video> <source src="${args[0]}" type="video/mp4"> </video>`;
});
}, {async: true});
Usaga.
{% video test.mp4 %}
I think, maybe below plugin's source code may help you.
from hexo-renderer-marked.
P.S
I have not try above code. So, it may have something wrong.
from hexo-renderer-marked.
https://hexo.io/docs/tag-plugins#YouTube
There is already a vimeo and YouTube tag helper. It should be fairly easy to either add a video tag helper or to use those as inspiration for what you want to do
from hexo-renderer-marked.
I did use those and others as inspirations on how to implement this. Upon further investigation, the problem seems to be with the <video>
tag. The moment I add two to the page, markdown parsing gets broken.
Here's the output from having just one <video>
on the page:
Here's what happens once I add two <video>
elements:
The developer console tells me that the entire markdown for the second paragraph (The one with '#') was treated as a string and not parsed for markdown.
from hexo-renderer-marked.
Hi {% video %}
seems to work but is there any attributes that we can use? e.g. width, autoplay, etc.
from hexo-renderer-marked.
More info on this repo: https://github.com/hexojs/hexo-tag-embed?tab=readme-ov-file#youtube
from hexo-renderer-marked.
Related Issues (20)
- Marked not rendering image tags when wrapped in a div HOT 7
- hexo-renderer-marked 中的新功能 DOMPurify 与部分标签外挂语法发生冲突 HOT 8
- Use marked.js official heading id implementation HOT 1
- md img render part improvement of hexo-render-marked HOT 7
- [BUG] 升级到5.0.0之后 hexo-blog-encrypt 无法使用了 HOT 1
- OperationalError: EPERM: operation not permitted, unlink[XXX] HOT 2
- Can postAsset render exclude post name? HOT 2
- &emsp;displayed as characters HOT 1
-   Display error HOT 9
- Why are they(`<`, `>`) treated differently ? HOT 3
- can't support emoji and   HOT 2
- [Improvment] Definition of the order of the anchors within the page is not consistent with Typora HOT 3
- After installing the plug-in, I cant find the marked options in my config.xml. HOT 1
- Can unescaped heading text be used? HOT 1
- doubt about line break HOT 2
- Bold rendering issues HOT 3
- `[]` in urls are not escaped HOT 4
- bug of markdown interpretation HOT 5
- img path error at [email protected] using markdown HOT 4
- Parse figcaption contents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-renderer-marked.