Skip to content

inline the output #7

Open
Open

Description

@EncodePanda

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?

Activity

  1. chrissound commented on Dec 15, 2020

    @chrissound
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions