GitChapter
GitChapter copied to clipboard
inline the output
Example 1
# {{ chapterHeader }} - Introduction
produces
#
Chapter 0
- Introduction
but I was hoping for
# Chapter 0 - Introduction
Example 2
This blog post was written using {{ shellOut ghc --version }}.
produces
This blog post was written using
The Glorious Glasgow Haskell Compilation System, version 8.10.2
.
but I was hoping for
This blog post was written using The Glorious Glasgow Haskell Compilation System, version 8.10.2.
Help :)
Is there a workaround for this?
Hmmm, had a quick look and can't seem to figure out where this would be coming from. I think it's the renderChapterTemplate function. Will try take another look this evening.
Probably also you'll have to strip a newline at the end from some commands (like ghc --version) which output this by default. But this could be done with a simple | tr -d '\n' at the end of the command.