Commit 9499f43b authored by aggsol's avatar aggsol 🙉

write first section as level 1 header

parent 39262936
Pipeline #26012411 passed with stage
in 1 minute and 50 seconds
......@@ -93,8 +93,16 @@ namespace bodhi
{
assert(f.first == f.second.m_number);
strm << "[[section-" << f.second.m_number << "]]\n"
if(f.second.m_number > 1)
{
strm << "[[section-" << f.second.m_number << "]]\n"
<< "=== " << f.second.m_number << "\n";
}
else
{
strm << "[[section-" << f.second.m_number << "]]\n"
<< "== " << f.second.m_number << "\n";
}
for(auto& l: f.second.m_lines)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment