From 71ee49d1eaf00ae888e22c2ab33dbbcefacec688 Mon Sep 17 00:00:00 2001 From: Evan Klitzke Date: Sun, 12 Jul 2020 11:28:33 -0700 Subject: [PATCH] make Parser::Parse accept istreams instead of stringstream --- AUTHORS | 2 +- include/maddy/parser.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index f64561c..6d9785d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -7,4 +7,4 @@ a license to everyone to use it as detailed in LICENSE.) M. Petra Baranski (info@progsource.de) Patrick José Pereira (patrickelectric@gmail.com) Martin Kopecky (martin.kopecky357@gmail.com) - +Evan Klitzke (evan@eklitzke.org) diff --git a/include/maddy/parser.h b/include/maddy/parser.h index e5f4f72..add4c45 100644 --- a/include/maddy/parser.h +++ b/include/maddy/parser.h @@ -73,11 +73,11 @@ public: * Parse * * @method - * @param {const std::stringstream&} markdown + * @param {const std::istream&} markdown * @return {std::string} HTML */ std::string - Parse(std::stringstream& markdown) const + Parse(std::istream& markdown) const { std::string result = ""; std::shared_ptr currentBlockParser = nullptr;