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
Iframe gimmick should be named 'iframe' instead of 'forkmeongithub' #71
Conversation
Iframe gimmick should be named 'iframe' instead of 'forkmeongithub'
Nice find. Although the name currently has no meaning and is not used. The iframe gimmick will work without this commit. Notice that it is undocumented because I didn't consider it 'production ready' |
Ah, I didn't look any further in the code how it's used. So the actual name, to be used in the .md files, is the filename? On a side note, I might miss something, but I couldn't find the documentation code repo which is backing http://www.mdwiki.info in case I would want to create a PR for it. |
The mdwiki.info website is just the The iframe gimmick is included in latest mdwiki releases, to use it just put |
Works like a charm here. |
On second view - it seems to work for the first iframe. As soon as I add a second one or more, the iframes are 1 pixel high ... ? |
Yes, the iframe is designed so that only one iframe on a page exists. It tries to scale the iframe to the exact height of the browser window, for better integration. The iframe gimmick is undocumented because I consider it still experimental. I added it because I want to include a blog somehow into the MDwiki page, but as you can see by the absence of this blog, it is right now not working as I want it to be. |
That makes sense. |
You can insert regular HTML (to some extend) within your markdown. I.e., the mdwiki.info page includes a javascript inlined to load google analytics: http://dynalon.github.io/mdwiki/navigation.md |
I see ... I could inject everything via JS. I try to do something like that, which might be working by injecting the iFrames: |
When you want to inject something via js, create a script tag and make sure you inject at the right time (after mdwiki is finished). You can do this like this:
|
No description provided.