# Code/Markdown Strategy for Notebooks This section tests selecting the thumbnail image from markdown or code cells in a Jupyter notebook. `````{admonition} Code for this gallery :class: dropdown The code for this gallery is: ````{code-block} rst :caption: index.md ```{base-gallery} :tooltip: first code last code first markdown last markdown markdown alt ``` ```` ````` ```{base-gallery} :tooltip: first code last code first markdown last markdown markdown alt ```