mdsh icon indicating copy to clipboard operation
mdsh copied to clipboard

support expanding code blocks

Open juhp opened this issue 3 years ago • 2 comments

Just found this interesting project, thanks. It seems close to what I need.

I think it would be really nice if mdsh could also support a code block format like this:

```shellsession $ echo hello; echo there hello there ```

Instead of having to write: `$ echo hello` as shellsession ```shellsession hello ```

Particularly since the as ... will be rendered in the README, right? which is really not desirable.

juhp avatar Mar 02 '22 15:03 juhp

That's an interesting idea, I wouldn't be against it if support for it was added.

One limitation is that it could only support blocks with a single command, as it's not possible to distinguish output that emits $ ..., but I think that's reasonable.

zimbatm avatar Mar 03 '22 14:03 zimbatm

@juhp, I believe this issue was closed in https://github.com/zimbatm/mdsh/pull/59

deemp avatar Apr 10 '24 12:04 deemp

yes, thank you

zimbatm avatar Jun 17 '24 09:06 zimbatm