Skip to content
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

希望可以通过 url 来导入文件 #77

Open
DiamondYuan opened this issue Oct 16, 2019 · 8 comments
Open

希望可以通过 url 来导入文件 #77

DiamondYuan opened this issue Oct 16, 2019 · 8 comments
Assignees
Labels

Comments

@DiamondYuan
Copy link

https://mdnice.com?text=xxx

可以让第三方网站跳转到 mdnice 并且导入文章。

@guanpengchn
Copy link
Collaborator

@DiamondYuan 有具体的示例么,不是特别理解

@DiamondYuan
Copy link
Author

@DiamondYuan 有具体的示例么,不是特别理解

编辑器里面的内容可以用 url 来导入。

@guanpengchn
Copy link
Collaborator

guanpengchn commented Oct 17, 2019

比如这样么https://mdnice.com?text=https://juejin.im/post/5da5f7786fb9a04df57dee81,这里会涉及到富文本转markdown,这个想法主要是用来爬取文章好进行转发吗哈哈

@DiamondYuan
Copy link
Author

比如这样么https://mdnice.com?text=https://juejin.im/post/5da5f7786fb9a04df57dee81,这里会涉及到富文本转markdown,这个想法主要是用来爬取文章好进行转发吗哈哈

不是的,是指 https://mdnice.com?text=#test\n##Test

然后编辑器框里面的内容就是

#test
##Test

@375ro
Copy link
Collaborator

375ro commented Oct 21, 2019

比如这样么https://mdnice.com?text=https://juejin.im/post/5da5f7786fb9a04df57dee81,这里会涉及到富文本转markdown,这个想法主要是用来爬取文章好进行转发吗哈哈

不是的,是指 https://mdnice.com?text=#test\n##Test

然后编辑器框里面的内容就是

#test
##Test

这样的话为什么不打开网页输入到编辑器框里?
还是说需要一个api,respond是排版好的结果?

@DiamondYuan
Copy link
Author

比如这样么https://mdnice.com?text=https://juejin.im/post/5da5f7786fb9a04df57dee81,这里会涉及到富文本转markdown,这个想法主要是用来爬取文章好进行转发吗哈哈

不是的,是指 https://mdnice.com?text=#test\n##Test
然后编辑器框里面的内容就是

#test
##Test

这样的话为什么不打开网页输入到编辑器框里?
还是说需要一个api,respond是排版好的结果?

我现在有一个网站,我希望一键打开 mdnice 并且填充内容。
通过 url 传递给 mdnice

@lxfriday
Copy link
Collaborator

@DiamondYuan get 有长度限制,不适合传长文。

(大多数)浏览器通常都会限制url长度在 2K 个字节

@guanpengchn
Copy link
Collaborator

@DiamondYuan 方便加下用户群么,沟通方便

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants