Skip to content

Examples

Tim edited this page Oct 3, 2022 · 1 revision

Option 1

Create instance:

#include "html2md.hpp"
#include <string>

int main() {
  std::string html = "<h1>html2md</h1>";

  html2md::Converter instance(html);
  std::string md = instance.Convert(); // # html2md\n

  return 0;
}

Option 2

Use static function:

#include <html2md.hpp>

//...

std::cout << html2md::Convert(html);
Clone this wiki locally