Files
paseo/packages/react-native-enriched-markdown/cpp/parser/MD4CParser.hpp
T
Mohamed Boudra eda906f6ee chore(app): vendor react-native-enriched-markdown with the Paseo patch applied
Copy react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 (upstream
software-mansion/enriched-markdown 766fc0e67) into
packages/react-native-enriched-markdown, with
patches/react-native-enriched-markdown+1.2.0-nightly-20261014-766fc0e67.patch
applied. Nothing else changes in this commit; the package is not a workspace yet.

Reproduce:

  npm pack react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67
  tar xzf react-native-enriched-markdown-*.tgz
  mkdir -p t/node_modules && mv package t/node_modules/react-native-enriched-markdown
  (cd t && git init -q && git apply ../patches/react-native-enriched-markdown+*.patch)
  diff -r t/node_modules/react-native-enriched-markdown packages/react-native-enriched-markdown

The diff is empty.
2026-11-22 08:14:39 +01:00

38 lines
765 B
C++

#pragma once
#include "MarkdownASTNode.hpp"
#include <string>
#include <memory>
namespace Markdown {
struct Md4cFlags {
bool underline = false;
bool latexMath = true;
bool superscript = false;
bool subscript = false;
bool highlight = false;
bool permissiveAutolinks = true;
bool hardSoftBreaks = false;
bool preserveBlankLines = false;
bool admonitions = true;
};
class MD4CParser {
public:
MD4CParser();
~MD4CParser();
// Parse markdown string and return AST root node
std::shared_ptr<MarkdownASTNode> parse(
const std::string& markdown,
const Md4cFlags& flags = Md4cFlags{},
bool isGFM = true);
private:
class Impl;
std::unique_ptr<Impl> impl_;
};
} // namespace Markdown