This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Remove 'Output' string #11
Comments
This is a good idea. I used it for an introductory class and found it might
be useful for the students if the output was "highlighted", but of course
it is not necessary nor internationalized.
I don't even know what happens if I hide the code block...
So please either submit a PR or wait until next week, I don't have time
over the weekend :)
…On Fri, Aug 7, 2020, 23:58 Igor Machado Coelho ***@***.***> wrote:
congratulations for this useful filter @shoeffner
<https://github.com/shoeffner> ... I've been using it a lot on
https://github.com/igormcoelho/ilectures-pandoc project!
I guess 'Output' string is highly undesired... on my local file I just
removed it. Do you think it's useful in any situation? If that's useful for
something, maybe a flag to remove it would be quite nice.
Just to mention that my use-cases involve generating side images, that are
directly embedded on pandoc output... Other issues with 'Output' is that it
refers to English, but my output is not English :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOAOD56YX646HPRJ5OK6JDR7R2GXANCNFSM4PYA3MFQ>
.
|
Thanks for the attention @shoeffner , I can propose the PR :) Congratulations again. |
Just to register my crazy #!/bin/bash
#echo "Arguments: $# -> $@"
CMD=/usr/bin/python3
if [ $# -eq 0 ]; then
echo "" # nothing to do
else
#echo "ARG0: $0"
#echo "ARG1: $1"
#if [ -z "$1" ]; then echo "EMPTY"
#fi
#echo "ARG2: $2"
# check if last argument is file
if [ ! -f "${@: -1}" ]; then
#echo "INVOKING $CMD FOR CODE: $@"
echo "$@" | $CMD # just 'echo' all
elif [ -z "$1" ]; then
#echo "EMPTY CODE! JUST RUN: $CMD ${@:2}"
$CMD "${@:2}" # skip first empty argument
else
#echo "INVOKING $CMD ${@:1:$(($#-1))} FOR FILE: ${@: -1}"
cat "${@: -1}" | $CMD "${@:1:$(($#-1))}" # all but last
fi
fi
#"${@:1:$(($#-1))}"
#`dirname $0`/cat_echo.sh "$@" | /usr/bin/python3 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
congratulations for this useful filter @shoeffner ... I've been using it a lot on https://github.com/igormcoelho/ilectures-pandoc project!
I guess 'Output' string is highly undesired... on my local file I just removed it. Do you think it's useful in any situation? If that's useful for something, maybe a flag to remove it would be quite nice.
Just to mention that my use-cases involve generating side images, that are directly embedded on pandoc output... Other issues with 'Output' is that it refers to English, but my output is not English :)
The text was updated successfully, but these errors were encountered: