tut icon indicating copy to clipboard operation
tut copied to clipboard

simplified inline hack

Open tpolecat opened this issue 8 years ago • 1 comments

One way to satisfy requests for inlining code (as discussed here) would be to turn

The secret is
```tut:inline
println("igloo")
```
and this is the rest of the sentence.

into

The secret is
igloo
and this is the rest of the sentence.

by removing shed markers, repl cruft, and extraneous newlines. The end result would be a single rendered line of text since single newlines become spaces in this context.

It's irritating to use but it's easy to implement and doesn't introduce any new syntax.

/cc @ceedubs

tpolecat avatar Apr 06 '16 23:04 tpolecat

This probably subsumes #34, but not in a satisfying way. :chicken:

tpolecat avatar Apr 06 '16 23:04 tpolecat