forked from MapComplete/MapComplete
		
	Fix deployment, fix documentation generation, add a small markdown generator
This commit is contained in:
		
							parent
							
								
									e480c97676
								
							
						
					
					
						commit
						8e72b70742
					
				
					 27 changed files with 478 additions and 399 deletions
				
			
		|  | @ -30,5 +30,14 @@ export default class List extends BaseUIElement { | |||
| 
 | ||||
|         return el; | ||||
|     } | ||||
|      | ||||
|     AsMarkdown(): string { | ||||
|         if(this._ordered){ | ||||
|             return "\n\n"+this.uiElements.map((el, i) => "  "+i+". "+el.AsMarkdown().replace(/\n/g, '  \n') ).join("\n") + "\n" | ||||
|         }else{ | ||||
|             return "\n\n"+this.uiElements.map(el => "  - "+el.AsMarkdown().replace(/\n/g, '  \n') ).join("\n")+"\n" | ||||
| 
 | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue