Ulysses, Writing, Scientific Writing.
Ulysses recognises the Markdown syntax, you need to encapsulate it between two ~. The raw source Markdown below inserts fig. 1 in section 2.2. The caption Ulysses Structure appears between the square brackets after the exclamation mark, and the path to the image is enclosed between the two