Skip to content

Instantly share code, notes, and snippets.

@tshemsedinov
Created February 15, 2022 23:59
Show Gist options
  • Select an option

  • Save tshemsedinov/7ccec7a455af70079118d77eada075fc to your computer and use it in GitHub Desktop.

Select an option

Save tshemsedinov/7ccec7a455af70079118d77eada075fc to your computer and use it in GitHub Desktop.
Nobr example

Here is a code example (using tag <code>) I want to render without breaking line at the middle: const instance = new Polygon([10, 10], [30, 10], [30, -10]); so I'd expect to see whole line at the second line.

To render this I must add line breaks manually, like this:

Here is a code example (using tag <code>) I want to render without breaking line at the middle: const instance = new Polygon([10, 10], [30, 10], [30, -10]); so I'd expect to see whole line at the second line.

@mr-mig

mr-mig commented Feb 16, 2022

Copy link
Copy Markdown

I think the only viable way to do that is to use ``` block:

Here is a code example (using tag <code>) I want to render without breaking line at the middle:

const instance = new Polygon([10, 10], [30, 10], [30, -10]);

so I'd expect to see whole line at the second line.

@tshemsedinov

Copy link
Copy Markdown
Author

Maybe you can implement double ticks for inline-block? ``const instance = new Polygon([10, 10], [30, 10], [30, -10]);``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment