Changes
diff --git a/README.md b/README.md
index 815cc26..290b197 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ MacroDown is a C++ Markdown processor that extends the CommonMark syntax with a
MacroDown uses a unified approach to document processing. Instead of having separate logic for every Markdown element, the parser first transforms standard Markdown syntax into an internal tree of macro calls.
For example:
+
* `# Heading` is converted to `%h1{Heading}`
* `*Emphasis*` is converted to `%em{Emphasis}`
* `> Quote` is converted to `%quote{Quote}`
@@ -59,15 +60,15 @@ You can integrate MacroDown into your C++ projects using the `MacroDown` class.
int main() {
macrodown::MacroDown md;
-
+
std::string input = "# Hello\n\nThis is **MacroDown**.";
-
+
// Step 1: Parse to Syntax Tree
auto root = md.parse(input);
-
+
// Step 2: Render to HTML
std::string html = md.render(*root);
-
+
std::cout << html << std::endl;
return 0;
}
@@ -110,4 +111,4 @@ cd build
* `tests/`: Unit and integration tests.
* `design.md`: Detailed design document.
-```
\ No newline at end of file
+```
diff --git a/tests/test_macrodown.cpp b/tests/test_macrodown.cpp
index b5b0c6d..59f091f 100644
--- a/tests/test_macrodown.cpp
+++ b/tests/test_macrodown.cpp
@@ -21,11 +21,11 @@ TEST(MacroDownTest, CustomMacro)
{
MacroDown md;
md.evaluator().define("greet", {"name"}, "Hello, %name!");
-
+
std::string input = "Say %greet{User}";
auto root = md.parse(input);
std::string html = md.render(*root);
-
+
EXPECT_EQ(html, "<p>Say Hello, User!</p>\n");
}
TEST(MacroDownTest, MarkdownElements)