Skip to main content
Post Closed as "Duplicate" by Journeyman Geek support
edited tags
Source Link
Journeyman Geek Mod
  • 219.8k
  • 52
  • 408
  • 909

Oftentimes, I want to include code samples in a list, for example:

  1. Item One
  2. Item Two, for example:

    private bool ItemTwo() { return this.IFeelLucky; }
  3. Item Three

The problem is that there isn't a good and intuitive way to do this using Markdown. It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.

Source that produces this:

1. Item One 2. Item Two, for example: <br/><br/><pre><code>private bool ItemTwo() { return this.IFeelLucky; }</code></pre> 3. Item Three

I would love to just be able to do it this way:

1. Item One 2. Item Two, for example: private bool Test() { return this.IFeelLucky; } 3. Item Three

Which results in, well, this:

  1. Item One

  2. Item Two, for example:

    private bool Test() { return this.IFeelLucky; }

  3. Item Three


Return to FAQ index

Oftentimes, I want to include code samples in a list, for example:

  1. Item One
  2. Item Two, for example:

    private bool ItemTwo() { return this.IFeelLucky; }
  3. Item Three

The problem is that there isn't a good and intuitive way to do this using Markdown. It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.

Source that produces this:

1. Item One 2. Item Two, for example: <br/><br/><pre><code>private bool ItemTwo() { return this.IFeelLucky; }</code></pre> 3. Item Three

I would love to just be able to do it this way:

1. Item One 2. Item Two, for example: private bool Test() { return this.IFeelLucky; } 3. Item Three

Which results in, well, this:

  1. Item One

  2. Item Two, for example:

    private bool Test() { return this.IFeelLucky; }

  3. Item Three


Return to FAQ index

Oftentimes, I want to include code samples in a list, for example:

  1. Item One
  2. Item Two, for example:

    private bool ItemTwo() { return this.IFeelLucky; }
  3. Item Three

The problem is that there isn't a good and intuitive way to do this using Markdown. It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.

Source that produces this:

1. Item One 2. Item Two, for example: <br/><br/><pre><code>private bool ItemTwo() { return this.IFeelLucky; }</code></pre> 3. Item Three

I would love to just be able to do it this way:

1. Item One 2. Item Two, for example: private bool Test() { return this.IFeelLucky; } 3. Item Three

Which results in, well, this:

  1. Item One

  2. Item Two, for example:

    private bool Test() { return this.IFeelLucky; }

  3. Item Three


edited tags
Link
user152859
user152859
Remove self-answering edit
Source Link
Stevoisiak
  • 16.9k
  • 3
  • 37
  • 94

Oftentimes, I want to include code samples in a list, for example:

  1. Item One
  2. Item Two, for example:

    private bool ItemTwo() { return this.IFeelLucky; }
  3. Item Three

The problem is that there isn't a good and intuitive way to do this using Markdown. It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.

Source that produces this:

1. Item One 2. Item Two, for example: <br/><br/><pre><code>private bool ItemTwo() { return this.IFeelLucky; }</code></pre> 3. Item Three

I would love to just be able to do it this way:

1. Item One 2. Item Two, for example: private bool Test() { return this.IFeelLucky; } 3. Item Three

Which results in, well, this:

  1. Item One

  2. Item Two, for example:

    private bool Test() { return this.IFeelLucky; }

  3. Item Three


Update: In order to use Markdown, you have to indent a minimum of eight spaces. I still stand my ground that this isn't 100% intuitive - you can indent only a single space to continue a list item (see below) - but at least it's good and easy.

1. List item Item continued 2. Another list item

Results in:

  1. List item

Item continued

  1. Another list item

Return to FAQ index

Oftentimes, I want to include code samples in a list, for example:

  1. Item One
  2. Item Two, for example:

    private bool ItemTwo() { return this.IFeelLucky; }
  3. Item Three

The problem is that there isn't a good and intuitive way to do this using Markdown. It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.

Source that produces this:

1. Item One 2. Item Two, for example: <br/><br/><pre><code>private bool ItemTwo() { return this.IFeelLucky; }</code></pre> 3. Item Three

I would love to just be able to do it this way:

1. Item One 2. Item Two, for example: private bool Test() { return this.IFeelLucky; } 3. Item Three

Which results in, well, this:

  1. Item One

  2. Item Two, for example:

    private bool Test() { return this.IFeelLucky; }

  3. Item Three


Update: In order to use Markdown, you have to indent a minimum of eight spaces. I still stand my ground that this isn't 100% intuitive - you can indent only a single space to continue a list item (see below) - but at least it's good and easy.

1. List item Item continued 2. Another list item

Results in:

  1. List item

Item continued

  1. Another list item

Return to FAQ index

Oftentimes, I want to include code samples in a list, for example:

  1. Item One
  2. Item Two, for example:

    private bool ItemTwo() { return this.IFeelLucky; }
  3. Item Three

The problem is that there isn't a good and intuitive way to do this using Markdown. It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.

Source that produces this:

1. Item One 2. Item Two, for example: <br/><br/><pre><code>private bool ItemTwo() { return this.IFeelLucky; }</code></pre> 3. Item Three

I would love to just be able to do it this way:

1. Item One 2. Item Two, for example: private bool Test() { return this.IFeelLucky; } 3. Item Three

Which results in, well, this:

  1. Item One

  2. Item Two, for example:

    private bool Test() { return this.IFeelLucky; }

  3. Item Three


Return to FAQ index

Post Made Community Wiki by animusonStaffMod
Copy edited.
Source Link
Loading
added 34 characters in body
Source Link
user1114
  • 1
  • 8
  • 120
  • 221
Loading
edited tags
Link
Pops
  • 69.2k
  • 34
  • 228
  • 361
Loading
I think that enough people will want to do this that it should be part of the faq
Link
Kyle Cronin Mod
  • 38k
  • 10
  • 90
  • 153
Loading
update
Source Link
lc.
  • 4.9k
  • 4
  • 24
  • 21
Loading
Source Link
lc.
  • 4.9k
  • 4
  • 24
  • 21
Loading