Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
injabridge.cpp File Reference

(d526fbb7de4ccc7c85c2aa08665fd3abef915a37)

#include "injabridge.h"
#include "textutils.h"
#include <cmath>
Include dependency graph for injabridge.cpp:

Go to the source code of this file.

Functions

static std::string escapeHtml (const std::string &input)
static std::string renderLinkSpan (const std::string &text, const std::string &href, bool hasHref, bool isMarkdown)
static std::string renderSpanMarkdown (const nlohmann::json &s)
static std::string renderSignatureSpans (const nlohmann::json &spans, const QString &format)
static void registerCallbacks (inja::Environment &env, const QString &format)

Function Documentation

◆ escapeHtml()

std::string escapeHtml ( const std::string & input)
static

Definition at line 14 of file injabridge.cpp.

◆ registerCallbacks()

void registerCallbacks ( inja::Environment & env,
const QString & format )
static

Definition at line 164 of file injabridge.cpp.

◆ renderLinkSpan()

std::string renderLinkSpan ( const std::string & text,
const std::string & href,
bool hasHref,
bool isMarkdown )
static

Definition at line 48 of file injabridge.cpp.

◆ renderSignatureSpans()

std::string renderSignatureSpans ( const nlohmann::json & spans,
const QString & format )
static

Definition at line 80 of file injabridge.cpp.

◆ renderSpanMarkdown()

std::string renderSpanMarkdown ( const nlohmann::json & s)
static

Definition at line 64 of file injabridge.cpp.