Ask Your Question
1

How to insert images into a numbered list with markdown?

asked 2012-11-16 05:06:50 -0600

Toms gravatar image

updated 2012-11-17 10:26:04 -0600

Evgeny gravatar image

If there is an image between numbered list items, then you get wrong numbers. Example:

  1. Number One

image description

  1. Number Two (but you see 1.)

image description

  1. Number Three (but you see 1.)

image description

edit retag flag offensive close merge delete

Comments

Removed tag "bug" as the described behavior is by design of the markdown library.

Evgeny gravatar imageEvgeny ( 2012-11-16 17:11:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-11-16 09:19:48 -0600

todofixthis gravatar image

updated 2012-11-17 09:56:53 -0600

This is actually correct behavior.

  1. First item.

Unindented content breaks up the list.

  1. Second item.

To make this work, you need to indent your images to make them part of the list:

  1. First item.

    Indented content appears as part of the previous list item.

  2. Second item.

edit flag offensive delete link more

Comments

but if you want to make the counts your self, you can not! I can not write in the text: 4. This ist forth something, scince I get 1. This ist forth something . For me this is not correct

Toms gravatar imageToms ( 2012-11-16 10:10:03 -0600 )edit
1

This is how markdown works. You can try using the wysiwig editor (tinymce). Neither one we can change significantly as they both depend on third-party libraries.

Evgeny gravatar imageEvgeny ( 2012-11-16 12:38:57 -0600 )edit

@todofixthis Could you make an example with images? thank you

Toms gravatar imageToms ( 2012-11-17 05:41:29 -0600 )edit

Updated answer with lolcats (:

todofixthis gravatar imagetodofixthis ( 2012-11-17 09:57:18 -0600 )edit

@todofixthis Thank you! I see it works, but it is too complicated for new users and it shifts the pictures to the right and makes them smaller, which is not so good for images with text.

Toms gravatar imageToms ( 2012-11-17 13:08:28 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-11-16 05:06:50 -0600

Seen: 276 times

Last updated: Nov 17 '12