You are viewing a single comment's thread from:

RE: is this a bug or something inteded on Steemit platform?

in #steemdev5 years ago (edited)

Ok, let me try to explain what is happening here...

Steemit allows us to use Markdown Syntax for creating and editing posts. Markdown can be used to write HTML in an easier/shorter way.


For example:

The HTML:
<h2>Big Header</h2>
can be achieved with Markdown by just typing:
## Big Header

When you type 1) or 1. followed by a space, the editor converts the Markdown to HTML, so that it will result in an ordered list <ol> as shown here:

<ol>
   <li>First</li>
   <li>Second</li>
   <li>Third</li>
</ol>
  1. First
  2. Second
  3. Third

The editor will exit an opened list as soon as more than one line break occurs, because it can't know, if the following lines should be added to the previous <li> (list item) or not. The next 2) creates a new list, therefore the numeration starts again from 1.

There are different ways to circumvent that behaviour:

  • Use <br> instead of normal line breaks inside the list
  • Use HTML ordered list as shown above
  • Use 1.&nbsp; to prevent creating a HTML list (indentation will not work then)

Hope this helps to better understand how that all works internally ;)

Sort:  

Nice! Then it was somehow inteded to work this way. Thank you and sorry to bother

Coin Marketplace

STEEM 0.29
TRX 0.11
JST 0.031
BTC 68308.81
ETH 3883.32
USDT 1.00
SBD 3.71