mdjs-viewer

开发者工具插件大小: 256KiB版本: v 0.0.4更新时间: 2021-12-21
大小:256KiB版本:v 0.0.4更新时间:2021-12-21

See Markdown JavaScript demos directly on github.com

mdjs-viewer 的使用方法详解,最全面的教程


mdjs-viewer 描述:

用户数:42

分类:开发者工具插件

扩展大小:256 KiB

最后更新时间:2021-12-21

版本:v 0.0.4


mdjs-viewer 插件简介:

这是来自Chrome商店的 mdjs-viewer 浏览器插件,您可以在当前页面下载它的最新版本安装文件,并安装在Chrome、Edge等浏览器上。


mdjs-viewer插件下载方法/流程:

点击下载按钮,关注“扩展迷Extfans”公众号并获取验证码,在网页弹窗中输入验证码,即可下载最新安装文件。


mdjs-viewer插件安装教程/方法:

(1)将扩展迷上下载的安装包文件(.zip)解压为文件夹,其中类型为“crx”的文件就是接下来需要用到的安装文件

(2) 从设置->更多工具->扩展程序 打开扩展程序页面,或者地址栏输入 Chrome://extensions/ 按下回车打开扩展程序页面

(3) 打开扩展程序页面的“开发者模式”

(4) 将crx文件拖拽到扩展程序页面,

完成安装如有其它安装问题,

请扫描网站底部二维码与客服联系如有疑问请参考:

https://www.extfans.com/installation/
# Markdown JavaScript Viewer (mdjs-viewer) [mdjs (Markdown JavaScript)](https://www.npmjs.com/package/@mdjs/core) allows to execute code and show interactive demos within your markdown documentation. This extension takes this functionality and enables it directly on github.com. You can see live demos in - Github Markdown files (like README.md) - Github Issues (incl. edit preview, new comment preview, new issue preview) - ... more is planned but not yet implemented ## Security Executing user code especially in github issues can be dangerous. This extension isolates code executing as much as possible. It can be considered as secure as any page that executes user code like codepen or jsfiddle. The Security Measures are: - not executing any code without user action (e.g. requires a click of a button first) - shows demos/executes code within an iframe - that uses [sandbox](https://www.w3schools.com/tags/att_iframe_sandbox.asp) with the following settings `sandbox="allow-scripts"` - populates the iframe with a data uri - does not allow any requests (except unpkg) to got outside of the iframe This prevents [all known attack vectors](https://github.com/open-wc/mdjs-viewer/issues/2). If you come up with new once please [report them](https://github.com/open-wc/mdjs-viewer/issues/new). ### Warning In order to function this extension modifies the CSP (Content Security Policy) for github.com with the following rules: - adds to script-src - `'unsafe-inline'` to execute code blocks within the mdjs iframe - `unpkg.com` to load user dependencies from within the mdjs iframe ## Demos Enable the extension and visit the following pages 1. [Readme of demo-wc-card](https://github.com/daKmoR/demo-wc-card) 2. [Issues of demo-wc-card](https://github.com/daKmoR/demo-wc-card/issues/1) ## How does it work? It adds a button `show demo ▹` to markdown pages and issues. Once you press it will get the raw md text which then gets pass though [mdjs](https://www.npmjs.com/package/@mdjs/core) and an extra plugin which replaces all imports (relative and bare imports) with [unpkg.com](https://unpkg.com/) urls with the `?module` flag. This way all dependencies can be directly loaded in the browser without the need of any service. Finally we create an iframe with the content of the mdjs html and js output. ## Limits In order to get the raw md content of an issues (only the first message not following comments) a request to api.github.com is required. This request is only needed if you actually click on the `show demo ▹` button. There is a hard limit of 60 anonymous api calls to github per hour. For more an API key is needed. (You can not yet provide it to the extension 🙈 - feel free to open a feature request)

相关应用

브라우저에서 라온시큐어의 PC보안 기능을 사용하기 위한 확장 프로그램입니다.
Capture a screenshot of your current page in entirety and reliably—without requesting any extra permissions!
Расширение позволяет использовать КриптоПро ЭЦП Browser plug-in в браузере. Для работы требует установленного ЭЦП Browser plug-in.
Adds React debugging tools to the Chrome Developer Tools. Created from revision 336ac8ceb on 7/13/2022.
Advanced Eyedropper, Color Picker, Gradient Generator and other colorful goodies
POSTMAN CHROME IS DEPRECATED DOWNLOAD THE UPDATED POSTMAN NATIVE APPS Postman Chrome is deprecated and is missing essential, new…
EditThisCookie是一个cookie管理器。您可以添加,删除,编辑,搜索,锁定和屏蔽cookies!
Tag Assistant helps to troubleshoot installation of various Google tags including Google Analytics, Google Tag Manager and more.
The web developers helper program to create and test custom HTTP requests.
back top top
back top top