Release 1.4.0

* up version to 1.4.0
* Remove deprecated code
* change release message
This commit is contained in:
Petra Baranski
2025-03-28 05:04:55 +01:00
committed by GitHub
parent 4518e402c7
commit 100eb59bc8
12 changed files with 43 additions and 71 deletions

View File

@@ -59,7 +59,7 @@ public:
*/
static const std::string& version()
{
static const std::string v = "1.3.0";
static const std::string v = "1.4.0";
return v;
}
@@ -72,17 +72,6 @@ public:
*/
Parser(std::shared_ptr<ParserConfig> config = nullptr) : config(config)
{
// deprecated backward compatibility
// will be removed in 1.4.0 latest including the booleans
if (this->config && !this->config->isEmphasizedParserEnabled)
{
this->config->enabledParsers &= ~maddy::types::EMPHASIZED_PARSER;
}
if (this->config && !this->config->isHTMLWrappedInParagraph)
{
this->config->enabledParsers |= maddy::types::HTML_PARSER;
}
if (!this->config ||
(this->config->enabledParsers & maddy::types::BREAKLINE_PARSER) != 0)
{

View File

@@ -58,20 +58,6 @@ enum PARSER_TYPE : uint32_t
*/
struct ParserConfig
{
/**
* @deprecated will be removed in 1.4.0 latest
*
* this flag = false == `enabledParsers &= ~maddy::types::EMPHASIZED_PARSER`
*/
bool isEmphasizedParserEnabled;
/**
* @deprecated will be removed in 1.4.0 latest
*
* this flag = false == `enabledParsers |= maddy::types::HTML_PARSER`
*/
bool isHTMLWrappedInParagraph;
/**
* en-/disable headline inline-parsing
*
@@ -85,9 +71,7 @@ struct ParserConfig
uint32_t enabledParsers;
ParserConfig()
: isEmphasizedParserEnabled(true)
, isHTMLWrappedInParagraph(true)
, isHeadlineInlineParsingEnabled(true)
: isHeadlineInlineParsingEnabled(true)
, enabledParsers(maddy::types::DEFAULT)
{}
}; // class ParserConfig