Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

When using wiki syntax, if I put an asterisk (*) at the beginning of a line, it gets transformed into a unordered list. How is it possible to have the asterisk to remain as it is when at the beginning of a line?

Example :

*Hello world, this sentence is not in an unordered list.
share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

I think a better method is to use the 'nowiki' tag. This is generic and does not rely on knowing character codes, plus your text is more readable.

    <nowiki>*</nowiki> will display as an asterisk at the start of the sentence.

http://www.mediawiki.org/wiki/Help:Formatting

Now you can display any special characters you like!

share|improve this answer
    
This is a much better solution if for no other reason it ensures that asterisks used within the site have a consistent look. –  Al E. Jul 19 '12 at 13:23
add comment

You enter it as &lowast; or as &#42;, which will be displayed as and *, respectively, in HTML.

Here is a test:

  • Here is displayed as a bullet list.

∗ Here is displayer as an asterisk operator (Math Asterisk).

* Here is displayed as an asterisk.

And your example:

∗Hello world, this sentence is not in an unordered list.

or

*Hello world, this sentence is not in an unordered list.

See the Wikipedia entry regarding the Asterisk character for more information.

Update: Actually, the character is Small Asterisk, &#65121;. There is a slight difference between them—this one is bigger, for instance.

﹡Hello world, this sentence is not in an unordered list.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.