22

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.
pnuts
  • 17,883
  • 5
  • 55
  • 103
MaxiWheat
  • 340
  • 1
  • 2
  • 7

3 Answers3

20

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!

Ingaborg
  • 216
  • 2
  • 3
12

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.

Alex
  • 22,820
  • 12
  • 83
  • 106
2

The other answers didn't seem to work for me in an Azure DevOps\VSTS wiki (which purports to be 'markdown'). What did work was using '\' as an escape character i.e.

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

d219
  • 121
  • 3