\documentclass{article}

\usepackage[a4paper,margin=2cm]{geometry}

\usepackage{luabreakurl}

\begin{document}

\section*{luabreakurl demonstration}

The examples below use a deliberately narrow text width to force line breaks.

\bigskip

\begin{minipage}{0.45\linewidth}

\subsection*{HTTPS}

\breakurl{https://www.example.org/documentation/releases/2026/07/18/a/very/long/path/with/query/parameters?language=en&format=pdf&download=true}

\bigskip

\subsection*{FTP}

\breakurl{ftp://ftp.example.org/pub/software/tex/latex/contrib/luabreakurl/archive/latest.tar.gz}

\bigskip

\subsection*{Git}

\breakurl{git+ssh://git.example.org/repositories/latex/luabreakurl/branches/feature/documentation/index.html}

\end{minipage}
\hfill
\begin{minipage}{0.45\linewidth}

\subsection*{mailto}

\breakurl{mailto:very.long.email.address.with.many.parts@example.org}

\bigskip

\subsection*{DOI}

\breakurl{doi:10.1234/abcdefghijklmnopqrstuvwxyz0123456789}

\bigskip

\subsection*{Custom continuation mark}

\luabreakurlsetup{
    continuation={\tiny$\Rightarrow$}
}

\breakurl{https://www.example.org/a/really/really/really/really/really/really/long/url}

\end{minipage}

\end{document}
