ContentLink.h header
#include <ew/core/ContentLink.h>
Namespace ew::core
Functions
bool ew::core::isObjectLinkUrl(QStringView url)
Returns true if url is an object link URL of the expected form.
ContentId ew::core::objectIdFromLinkUrl(QStringView url)
Parses the target content id from url; returns a null id if url is not an object link URL or carries a malformed id.
QString ew::core::objectLinkUrl(ContentId id)
Returns the link URL that targets id, or an empty string if id is null.
Links to a content object are stored as ordinary Markdown links whose target is a URL that carries the object's stable id, so references survive renames and resolve by UUID across mounted libraries (DESIGN.md section 6.3). The URL form is "ewriter://object/<uuid>". These helpers build and parse that URL.