can i masquerade literal/codeblock as image/figure

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

can i masquerade literal/codeblock as image/figure

hjwp

I occasionally want to use ascii-art diagrams as illustrations, but i'd like the captions for them to say "figure 1-1" instead of "example 1-1", is that possible using masquerading somehow?

here's the kind of thing i've been trying:

[[a_diagram]]
[figure]
.A diagram
--
....

   +=====================+
   | ascii diagrams ftw  |
   +---------------------+
   | hello               |
   | there               |
   +---------------------+ 

....
--
I've tried "figure" and "image" but no luck so far?