I'd like to add in tikzcd some arrows pointing to a specific line (here the line JKL). However my code always point to the top of the cell (when it's even producing a meaningfull output):
I'm not sure why, but tikzmarknodes were reported to work here.
MWE:
\documentclass{article}
\usepackage{tikz-cd,amssymb}
\usetikzlibrary{tikzmark,quotes}
\usepackage{tabularx}
\newcolumntype{L}{>{$}l<{$}}
\begin{document}
\tikzset{
point line/.style={
to path={
(#1-|{\tikztostart.east}) -- (#1-|{\tikztotarget.west})
\tikztonodes
}
}
}
\begin{tikzcd}
A \rar[point line=myline] & |[fill=green]| \tiny \begin{tabular}{@{}L@{}}
ABC\\
DEF\\
GHI\\
\tikzmarknode{myline}{JKL}\end{tabular}
\end{tikzcd}
\end{document}