Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserveWhitespace not working for code block #52

Open
victory-sokolov opened this issue May 3, 2023 · 0 comments
Open

preserveWhitespace not working for code block #52

victory-sokolov opened this issue May 3, 2023 · 0 comments

Comments

@victory-sokolov
Copy link

Hey! I was wondering if should I create a custom translator in order to preserveWhitespace for code blocks.
As for now, code blocks are missing whitespaces on the new line, here is the current result that I'm getting.

   public async writeFile(filePath: string, contents: string) {
   writeFile(filePath, data, err => {

    if (err) {
    throw err;
    }

    console.log("JSON data is saved.");
    });
    }

or should we add a new case statement for the code block in the visitNode method?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant