transnano / markdown-to-confluence-vscode

MIT License
20 stars 6 forks source link

bug in wiki markup conversion #212

Open zhongluqiang opened 3 years ago

zhongluqiang commented 3 years ago

This extension saved my life, but I found some bugs:

  1. any {} outside codeblock will be converted to confluence macro wiki markup, thus ruin the whole conversion;
  2. any [] outside codeblock will be converted to confluence link wiki markup, even in inline codeblock.

markdown example:

Next line is an markdown example to test the above bugs:
this is an array: int a[5] = {1, 2, 3, 4, 5};

wiki markup output:

Next line is an markdown example to test the above bugs:
this is an array: int a[5] = {1, 2, 3, 4, 5};

In this case [5] is a link, see Links, and {1, 2, 3, 4, 5} is an unknown macro.

I'm using Confluence Server, version 7.10.2, by "Insert -> wiki markup".

transnano commented 3 years ago

@zhongluqiang Thank's

That point is correct. I'm aware of the bug, but I'm thinking about how to fix it.

What you can do now is use code blocks or inline code blocks.

ex)

int a[5] = {1, 2, 3, 4, 5};

In the near future, we will take this bug seriously and improve it.