denco / vscode-confluence-markup

Visual Studio Code extension for Confluence® markup
MIT License
27 stars 10 forks source link

Render {noformat} blocks like {code} blocks #3

Closed iainelder closed 6 years ago

iainelder commented 6 years ago

The {noformat} tag is valid Jira markup. It works like {code} without syntax highlighting. I use it a lot in Jira comments to show terminal output.

Although {code} is not documented Confluence syntax, it is supported by your plugin.

Could you add {noformat} as an alias of {code} so that they behave the same way?

Example using both tags:

The date today is:

{code}
$ date -R
Fri, 09 Feb 2018 10:36:45 +0100
{code}

The date tomorrow is:

{noformat}
$ date -R -v+1d
Sat, 10 Feb 2018 10:37:39 +0100
{noformat}

Jira renders them the same way:

image

Your plugin renders {code} but does not render {noformat}.

image

It would be a real time saver for me if you could support this. Then I could preview my comments in the editor before pasting into the web page.

denco commented 6 years ago

Hi, i've no info about a {noformat} macro, now i've add it for rendering. code is a well documented macro by atlassian it supported in jira and in confluence too.

iainelder commented 6 years ago

Works for me now, thanks!