bitovi / documentjs

The sophisticated documentation engine
https://documentjs.com/
MIT License
598 stars 381 forks source link

:bug: fix including multiple demos #292

Closed alabbas-ali closed 6 years ago

alabbas-ali commented 6 years ago

adding multiple Demos in the same md file appears not to work. there are some issues with "demo_frame" this part of the code

$('.demo_wrapper', this.element).each(function() {
    var wrapper = $(this);
    new DemoFrame(wrapper);

    if(wrapper.data('demoHeight')) {
        iframe.height(wrapper.data('demoHeight'));
    }
});

it is clear that iframe dose not exest in this context.