Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 395099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:25:13+00:00 2026-05-12T16:25:13+00:00

I’ve got a small issue with Derobin’s implementation of WMD editor. It doesn’t seem

  • 0

I’ve got a small issue with Derobin’s implementation of WMD editor.

It doesn’t seem to be formatting properly and I’m not entirely sure why. Though I’m not sure if I should be asking this on Doctype or not either.

I was using the markdown text examples from the SO reference, which of course should look like the below:

  1. Lists in a list item:
    • Indented four spaces.
      • indented eight spaces.
    • Four spaces again.
  2. Multiple paragraphs in a list items:
    It’s best to indent the paragraphs four spaces
    You can get away with three, but it can get
    confusing when you nest other things.
    Stick to four.

    We indented the first line an extra space to align
    it with these paragraphs. In real use, we might do
    that to the entire list so that all items line up.

    This paragraph is still part of the list item, but it looks messy to humans. So it’s a good idea to wrap your nested paragraphs manually, as we did with the first two.

  3. Blockquotes in a list item:

Skip a line and
indent the >’s four spaces.

  1. Preformatted text in a list item:

    Skip a line and indent eight spaces.
    That's four spaces for the list
    and four to trigger the code block.
    

However, what I get looks like this:

Example of issue

I think this is CSS related, but I can’t see what’s causing it. I can post the CSS if it’s needed but I’d probably post all of it as I’m not sure what’s causing it. However, I’m not sure if it could be the actual script itself (which I find doubtful as the examples work and I have merely copied the same exact code).

I should also point out, that the example that comes with the download of WMD works fine on it’s own, but once I add it to my application, the above occurs.

I should also add that this problem is persistent in IE7/8 and Firefox 3.5.

Any help is much appreciated.


EDIT: Solved the Bullets/Numbers appearing outside the box with adding CSS style for ol and ul of list-style-position: inside; but the rest still remains the same.

EDIT: Edit based on user comments. The HTML being output is:

<ol>
<li>Lists in a list item:
<ul><li>Indented four spaces.
<ul><li>indented eight spaces.</li></ul></li>
<li>Four spaces again.</li></ul></li>
<li><p>Multiple paragraphs in a list items:
It's best to indent the paragraphs four spaces
You can get away with three, but it can get
confusing when you nest other things.
Stick to four.</p>

<p>We indented the first line an extra space to align
it with these paragraphs.  In real use, we might do
that to the entire list so that all items line up.</p>

<p>This paragraph is still part of the list item, but it looks messy to humans. So it's a good idea to wrap your nested paragraphs manually, as we did with the first two.</p></li>
<li><p>Blockquotes in a list item:</p></li>
</ol>

<blockquote>
<p>Skip a line and
indent the >'s four spaces.</p>
</blockquote>

<ol>
<li><p>Preformatted text in a list item:</p>

<pre><code>Skip a line and indent eight spaces.
That's four spaces for the list
and four to trigger the code block.
</code></pre></li>
</ol>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:25:14+00:00Added an answer on May 12, 2026 at 4:25 pm

    in your css file you have this:

    * {
        margin:0;
        padding:0;
    }
    

    which is a universal reset that removes padding and margin from everything. As I said on Doctype.com.

    You will need to remove that, and use a more controllable reset, or set some default padding and margins for ul’s and li’s in general.

    As every browser seems to have different defaults for ul’s I tend to omit them from my reset and set nav ul’s specifically.

    here’s the reset I use:

    div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    abbr, acronym, address, big, cite, code,
    del, dfn, font, img, ins, kbd, q, s, samp,
    small, strike, sub, sup, tt, var,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        font-weight: inherit;
        font-style: inherit;
        font-size: 100%;
        font-family: inherit;
        vertical-align: baseline;
        }
    

    which resets almost everything other than lists.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 190k
  • Answers 190k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Lazy-loading will give you the biggest headache. Some of the… May 12, 2026 at 5:55 pm
  • Editorial Team
    Editorial Team added an answer Depends what sort of production applications. Generally speaking, I've deployed… May 12, 2026 at 5:55 pm
  • Editorial Team
    Editorial Team added an answer Something like this in the code-behind will work. You'll need… May 12, 2026 at 5:55 pm

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS
I am currently running into a problem where an element is coming back from

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.