Home > OS >  In there a markdown syntax similar to ­?
In there a markdown syntax similar to ­?

Time:12-03

I'm looking for a similar markdown syntax to ­ in HTML.

I know there are hard breaks in markdown, but I'm looking for something that acts like ­ or similar.

CodePudding user response:

In HTML, the ­ character is used to create a soft hyphen, which is a character that is not visible unless it is at the end of a line and the word is too long to fit on the line. In markdown, there is no equivalent character or syntax for creating a soft hyphen.

However, you can achieve a similar effect in markdown by using the   character, which stands for "non-breaking space." This character will insert a space in your text that will not break onto a new line, even if the line is too long to fit on the page.

To use the   character in markdown, you simply need to include it in your text where you want the non-breaking space to appear. For example, if you want to insert a non-breaking space between the words "hello" and "world," you would write the following:

hello world

This will prevent the line from breaking between the two words, even if it would otherwise be too long to fit on the page.

  • Related