Proper inline code blocks
A recent update added the code block formatting which is great, but is limited to formatting an entire paragraph this way. It would be nice if it was possible to format just a single sentence or a single word/character/… within a paragraph.
In the editor you can actually utilize the standard markdown for highlighting with backticks surrounding text, but it’s kind of janky and not rendered correctly. Once the backticks surround the text it’s previewed as monospace, but saving and seeing the “finished” piece still shows the surrounding backticks. Additionally, deleting the backticks is kind of tricky, as they aren’t proper characters and are skipped over/not deleted when you press delete (it instead deletes the character before it) (Also the backticks don’t seem to work everywhere, haven’t tested too much to figure out when it does and when it doesn’t)
Overall it feels kind of half baked, almost unintentional, but it would be cool if it would be supported properly as having documentation posts up on HN next to all the rest would be a lot easier if we can properly format the code blocks in that documentation without having a full empty line for a single word within a sentence.
Here an example of how it looks like currently when using the single backticks to format something within a paragraph:
it would be correct, if it weren’t for the backticks being visible.
Subscribe to post
Get email updates when post changes