make Parser::Parse accept istreams instead of stringstream

This commit is contained in:
Evan Klitzke 2020-07-12 11:28:33 -07:00
父節點 19338d2b56
當前提交 71ee49d1ea
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: 7547F1FDF6629AFB
共有 2 個文件被更改,包括 3 次插入3 次删除

查看文件

@ -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)

查看文件

@ -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<BlockParser> currentBlockParser = nullptr;