hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.6k stars 16.63k forks source link

Problem assigning element attributes in nested structures in external markdown files #1242

Open jjelosua opened 9 years ago

jjelosua commented 9 years ago

First of all thanks for this great framework. I wanted to write the presentation using external markdown files, but I am having trouble assigning a custom css class to an element that has nested elements within.

For example an image with a link, I am trying to assign a class to the image but it gets assigned to the link instead...Is there a way to do this?

Example markdown with image and link [![Caption][eel_img]][eel]

Sorry if this is obvious but...can't figure it out

bentolor commented 9 years ago

Similar issue here, where .element is not working as expected. It has no effect at all.

<div class="container">
    <div data-markdown>
        - **Topic1** (foo)          <!-- -->
            on  »next line«         <!-- .element: class="fragment" -->
        - Topic 2                   <!-- .element: class="fragment" -->
    </div>
</div>