acmsguru |
---|
Закончено |
#" defines an enumerated list and "
*" defines a regular list. These symbols are called list markers.
*" and "
#", and line breaks. Each line contains at least one character different from "
*" and "
#", so there will be no empty lines in the output.
sample input | sample output |
FirstLine *ItemX *ItemY #Item1 #Item2 *ItemZ | FirstLine <ul> <li> ItemX </li> <li> ItemY </li> </ul> <ol> <li> Item1 </li> <li> Item2 </li> </ol> *ItemZ |
sample input | sample output |
*ab *x#x *#1 *#2 #3 | <ul> <li> ab </li> <li> x#x </li> <li> <ol> <li> 1 </li> <li> 2 </li> </ol> </li> </ul> #3 |
sample input | sample output |
***1 **2 | <ul> <li> <ul> <li> *1 </li> <li> 2 </li> </ul> </li> </ul> |
Название |
---|