This is me just testing out some stuff. If nobody does it, I'll do it myself as soon as I figure out what works and what doesn't. I've been only using markdown text for a few weeks in a different editor, so...
THE BIGGEST HEADING # - So this one isn't working. I guess its reserved for the title.
Ok, so that works. How about some ==highlighted text==
Guess, not.
How about bold and italic?
Yay!
I mean, if this doesn't work...
print (Hello World)
OK, thank god. Can be used for code.
Code example
const app = express() app.use(bodyParser.json()) app.use('/api/products', products) app.use('/api/orders', orders) const port = process.env.PORT || '3000' app.listen(port)
But also this (could be used to highlight a big chunk of text as well, I guess.)
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
Text example. You have to play with it a bit to get it looking like you want to.
Lorem Ipsum is simply dummy text of the printing
and typesetting industry. Lorem Ipsum
has been the industry's standard dummy text ever since the
1500s, when an unknown printer took a galley of type
and scrambled it to make a type specimen book.
It has survived not only five centuries,
but also the leap into electronic typesetting,
remaining essentially unchanged.
It was popularised in the 1960s with the release
of Letraset sheets containing
Lorem Ipsum passages, and more recently
with desktop publishing software
like Aldus PageMaker
including versions of Lorem Ipsum.
How about linking a text. I work at Treblle, an API observability platform
And images. How do we do images?
There's apparently a number of ways to do this, still figuring that one out.
For now, before someone does a good old-fashioned dumbed-down explanation most of the stuff from the link provided by IH works. https://www.markdownguide.org/cheat-sheet/
IH is a subset of Github-flavored Markdown, just whatever parts @csallen wanted to implement.
H1 probably isn't implemented because each page should only have one and it would be really disruptive to have them in comments anyway.
Yup, figured as much. H1 should be just for the main title.
Hey,
Check out my markdown files for my packages and just taking it. It's pretty useful since it's all open source:
https://github.com/Sulstice/global-chem
https://github.com/Sulstice/molpdf
https://github.com/Sulstice/cocktail-shaker
https://github.com/Sulstice/Bunny
https://github.com/Sulstice/Uptime-Cheminformatics
And there is a variety of flavours you can use for stuff.
Is your intention to get preview for markdown specific to Indie hackers or in general ? I wrote a Markdown cheatsheet in simple table form along with example preview. Try this
https://tipseason.com/markdown-basics-cheat-sheet-one-page/
I use this for everyday posts.
This is pretty neat.
It would be great if someone really dumbed down the how to ad an image to the body of a text. I figured out one way yesterday and posted about it. However, as I understand it, there are multiple ways of doing this.
The thing that I was confused about was - is it necessary to have the image on the internet somewhere - no matter what way we are using, or can you somehow pull up a local file?
I figured out a way using imgur: https://www.indiehackers.com/post/how-to-add-an-image-into-the-body-of-an-indie-hackers-post-82e81c1def
next thing you know, someone's trying to run some js or hack the db