b3e2466f86d262476eca250d63ae395fadb67da1 — Nick Econopouly 3 months ago 2760aff
make command-line program work on regular markdown file containing links
1 files changed, 6 insertions(+), 6 deletions(-)

M plr.py
M plr.py => plr.py +6 -6
@@ 20,12 20,12 @@ writeoutput = args.output.write
      else:
          writeoutput = print
-     for line in args.input:
-         if isurl(line):
-             writeoutput(linkfunc(line)[1])
-         else:
-             print("Not a url, skipping")
+ 
+         content = args.input.read()
+         content = replaceText(content,False)
+         writeoutput(content)
+ 
+             # writeoutput(type(args.input))
  
  if __name__ == '__main__':
      main()
-