diplodoc-platform / transform

Simple transformer YFM (Yandex Flavored Markdown) to HTML.
MIT License
50 stars 34 forks source link

Inline code formatting collapses consecutive spaces into single one #455

Open StoneSpb opened 5 days ago

StoneSpb commented 5 days ago

I have code snippet with consecutive spaces:

#endif  // BUILDFLAG(IS_IOS)

When I use inline code formatting the consecutive spaces collapse into single one, which is undesired: #endif // BUILDFLAG(IS_IOS) The behavior is different from code block formatting.

The issue may be caused by using white-space: normal style: https://github.com/diplodoc-platform/transform/blob/4d719347e5ca96617a0bf6258f18723245e99433/src/scss/_common.scss#L327