GitChapter icon indicating copy to clipboard operation
GitChapter copied to clipboard

inline the output

Open EncodePanda opened this issue 5 years ago • 1 comments

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?

EncodePanda avatar Dec 14 '20 19:12 EncodePanda

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.

chrissound avatar Dec 15 '20 09:12 chrissound