I'm trying to create a table in Azure DevOps Wiki using the Azure CLI command az DevOps wiki page update. The value of the --content parameter that I'm sending contains \n which I'm led to believe creates a new line in the wiki page, but it doesn't seem to work, instead, it looks like this:
The --content parameter value looks like this:
"# Main Heading\n\n## Subheading\n\n| **Column Header** | **Header 1** | **Header 2** | **Header 3** | **Header 4** | **Header 5** |\n| ----------------- | ------- | ------- | ------- | -------- | ---------- |\n| Item 1 | 1.1.1 | 1.1.1 | 1.1.1 | 1.1.1 | **1.1.1** |\n| Item 2 | 2.2.2 | 2.2.2 | 2.2.2 | 2.2.2 | **2.2.2** |\n| Item 3 | 3.3.3 | 3.3.3 | 3.3.3 | 3.3.3 | **3.3.3** |\n| Item 4 | 4.4.4 | 4.4.4 | 4.4.4 | 4.4.4 | **4.4.4** |\n"
It feels like some kind of automatic escaping is happening somewhere.
Does anyone know how I can achieve a new line in this scenario, please?
Your help is greatly appreciated.
You could use md file and pass it as parameter.
text.md
and then