Hi everyone. I have an odd one. I’m a newbie, but I know enough that Markdown is not friendly to unconventional tabs and spaces. I’m using Atom code editor, and I’m hoping to build a page in Jekyll that has poems in free verse with strange spacing like the example below. Some possibilities I’m thinking of:
** Is there some way I can enforce a system whereby certain symbols are equal to “three spaces” or “5 spaces”? I’d rather not gum up the space with a bunch of non breaking spaces; and etc.
** is there some way I could embed maybe a scrollable image of, say, a 2000 line poem? This seems maybe more likely, but maybe not sufficiently “responsive”…?
you should be able to style the code block how ever you want - it is nothing special really. On here it has the background color and a different font and some keyword styles but all of that can be changed as needed.
Visual Studio Code is what most people use - Atom was created by GH but then MS bought GH and Atom sort of died I think. But whatever works, I’m sure it is fine as a code editor as long as you can keep it working (I think they are pulling the plug on it in a few months?).
One problem with using code blocks is that the text will be marked as <code>, which could cause problems with styling, syntax-highlighting, search engines, etc.
Since Markdown is a super-set of HTML, you could just use pre-formatted HTML. Most browser render <pre> with a monospace font, but that can be overridden. For example:
<pre style="font-family: inherit;">
’Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
</pre>