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

Separate MD file from HTML? #1

Open
kerim opened this issue Dec 15, 2012 · 3 comments
Open

Separate MD file from HTML? #1

kerim opened this issue Dec 15, 2012 · 3 comments

Comments

@kerim
Copy link

kerim commented Dec 15, 2012

I love this! It works especially well with FoldingText, a MarkDown outline program for OS X. The problem, however, is that the MD file has to be copied and pasted within the HTML file. Is there some way to modify this app so that it would work with an external MD file? I thought a PHP include command might do the trick, but right now the script has the MD file inside a comment so PHP doesn't work in there. Any ideas?

Also, instead of separating slides with dashes, I'd like to modify the script so that any H1 or H2 header (lines starting with # or ## in MD) would start a new slide. This will make it easier to update MD outline files without having to add separators.

Thanks for this great script!

@airportyh
Copy link
Owner

The markdown doesn't have to be in comments. If you take out the comment delimiters does that help? Also, I have since created yet another presentation tool that takes an external markdown file instead. https://github.com/airportyh/Preston

@kerim
Copy link
Author

kerim commented Feb 9, 2013

Hmm. I spent some time on this today and I simply couldn't get it to work. I really need it to work in a local folder not via HTTP, and it is likely that computers i use won't be configured to use PHP, so I probably need the include command to run via javascript (which I don't know). I spent some time googling solutions, but I couldn't figure it out...

@airportyh
Copy link
Owner

Sorry, but there isn't a solution that will work across different browsers for local files (due to cross domain restriction) - it must be http. With php include, it is possible.

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