Pipe tables are not created when converting to HTML
I'm trying to convert the below as a table in HTML.
Tables
| Option | Description |
|---|---|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
Unfortunately, my HTML output is generated as below when using CommonMark.CommonMarkConverter.Convert(...).
Tables
| Option | Description | | ------ | ----------- | | data | path to data files to supply the data that will be passed into templates. | | engine | engine to be used for processing templates. Handlebars is the default. | | ext | extension to be used for dest files. |
Seems like that should work if you added newlines. Is there a reason you have everything as a single line?
As you can see in the attached zip, they are already in newline only. When I paste the content online here at https://dillinger.io/, it displays them properly. When I add additional newline, they are still displayed with pipes, but in new lines. But the tables is not rendered. I'm not sure what I'm missing.
GitHub works fine if you fence the code...
Source:
| Option | Description |
| ------ | ----------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
Rendered by GitHub: (requires one blank line preceding)
| Option | Description |
|---|---|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
I cannot get CommonMark to render this. It instead renders as:
<p>| Option | Description |
|------ | -----------|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |</p>
VS Code's MarkDown preview also accepted this code.
Is the problem solved?