lijunle / Vsxmd

VS XML documentation -> Markdown syntax.
MIT License
217 stars 52 forks source link

Incorrect indentation of <code/> blocks. #49

Closed kse-clearhaus closed 6 years ago

kse-clearhaus commented 6 years ago

Error description

    /// <summary>
    /// ...
    /// </summary>
    /// <example>
    /// ...
    /// <code lang="csharp">
    /// using ...;
    /// public static void main()
    /// {
    ///     var apiKey = "UUID";
    /// }
    /// </code>
    /// </example>

Is converted into the incorrect markdown

```csharp
using Clearhaus.Gateway;
            public static void main()
            {
                var apiKey = "My Secret UUID";
            }

### CsProj snippet ###
netstandard2.0 ... bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml '..\..\..\GatewayDocumentation.md ... ... ...


### Comments ###

This is most likely because the indentation from the `.xml` file is not removed.

**Note:** This project is compiled on Linux, where the XML is generated with only NEWLINE `\n` line endings and no carriage return `\r`.
saleslessa commented 6 years ago

Thank you for your feedback. I'm working on this issue and in next days I'll release a new version with this solved.

saleslessa commented 6 years ago

Hi, Version 1.3.3 fix this bug.

Regards,

kse-clearhaus commented 6 years ago

Much appreciated!