nus-cs2103-AY2122S2 / forum

13 stars 1 forks source link

How to show multiple spaces in Markdown inside a code block #255

Closed B1LLP4RK closed 2 years ago

B1LLP4RK commented 2 years ago

Hi, I am trying to polish the UserGuide for the team project. I have come across this task to write that 't/ ' is essentially the same as 't/'. The point is that I wanted to express that trailing spaces will be ignored. Apostrophes was used above instead of backtick so that you can see my intention.

And the above gets shown as t/ is essentially the sase as t/. Is there a way around this? I tried using   but it didn't work inside a code block.

Punpun1643 commented 2 years ago

Not sure if I understand correctly, but are you trying to show the trailing spaces but cannot show them in the UG?

You can probably try using <code></code> and &nbsp; together.

For example:

<code>t/&nbsp;&nbsp;&nbsp;</code> should produce t/   

B1LLP4RK commented 2 years ago

@Punpun1643 Managed to describe in other means, but this is definitely something I would try in the future!