Skip to content

[Request] full view render #32

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

Open
dimaslanjaka opened this issue Jul 27, 2023 · 5 comments
Open

[Request] full view render #32

dimaslanjaka opened this issue Jul 27, 2023 · 5 comments

Comments

@dimaslanjaka
Copy link

i need render single markdown file full page, can this tool do that ?

@yusanshi
Copy link
Owner

What do you mean by "full page"

@dimaslanjaka
Copy link
Author

What do you mean by "full page"

Yessss that is... So i can bring the full page shortlink to my friend or other people to read some rendered markdown, instead giving the github or gist link >.<

@yusanshi
Copy link
Owner

I think emgithub is not meant to do that, since emgithub gives you a html <script> tag that must be used inside a html page. The <script> tag itself can not be directly viewed.

I believe GitHub Pages may suit you. Say you have a Markdown file https://github.com/username/repo/blob/main/file.md. With GitHub Pages, the Markdown file can be rendered at username.github.io/repo/file.html.

@dimaslanjaka
Copy link
Author

image

just need the preview only without any forms. might can get the source url from URL parameter then render it into preview element. might you can get some idea to create it.

@yusanshi
Copy link
Owner

yusanshi commented Aug 4, 2023

If you visit https://emgithub.com/yusanshi/emgithub/blob/master/README.md, you'll see the preview page you want.

image

So one possible way it to just hide all other elements, leaving alone the preview in this case. This can be done by hacking 404.html. Since this feature is quite off-topic, you may need to fork the project and hack as you need. See https://github.com/yusanshi/emgithub#create-your-own-emgithub.

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

No branches or pull requests

2 participants