subconsciousnetwork / subtext

Markup for note taking
Apache License 2.0
271 stars 20 forks source link

Document how to do inline source code #55

Open justinabrahms opened 10 months ago

justinabrahms commented 10 months ago

When writing notes, I often have inline source code I need to reference. There's no documented mechanism of accomplishing this in subtext that I can find.

Examples:

We can look at the state of the raft peers via consul operator raft list-peers. If there's no leader, it won't return, and you instead need to pass the -stale flag to read from a follower.

justinabrahms commented 10 months ago

According to the subconscious ios app, inline code blocks are supported with backticks: https://github.com/subconsciousnetwork/subconscious/blob/main/xcode/Subconscious/Shared/Parsers/Subtext.swift#L297