I need my tikz-cd diagrams to have arrows (vertical and horizontal) that mimic \mapsto^* to match the relation in the text. The closest I've managed is to add a label {*} at [pos=1]:
\documentclass{article}
\usepackage{tikz,tikz-cd,stmaryrd}
\begin{document}
\[
\begin{tikzcd}
M \dar \rar[maps to] & N \dar[maps to][pos=1]{*} \\
M' \rar[maps to][pos=1]{*} & N'
\end{tikzcd}
\]
\[
M' \longmapsto^* N'
\]
\end{document}

Not horrible, but definitely off. I can get it closer by using pos=1.1, but I'd prefer a less fiddly solution (that won't break if the arrow's length changes, for instance). It would be especially helpful if I can define a /.style for this arrow so that I can change my existing ones (they already use a custom style).

decorationTikZ library. But it's just an idea. – egreg Oct 06 '13 at 10:11pos=1replace{*}with{}and trylabel={[pos=1,inner sep=0,outer sep=0]45:${}^*$}in the second one. To be honest the tikz version is better in my opinion. – percusse Oct 06 '13 at 12:21label=as part of the label options, which defeats the purpose since I don't want to have a label at all (unless there's a real label). – Luke Maurer Oct 09 '13 at 01:04\pgftextinside the arrow code in the linked question? This works only for the first time (I guess because the arrow picture is stored away and the next time the TeX box is somehow lost and/or overwritten). For very easy paths, the easiest may to add a node at the end of the path (but hidden in a style as in the linked question). Not an arrow tip but it doesn’t seem so easy to use text in an arrow tip. :( – Qrrbrbirlbel Oct 11 '13 at 00:31\pgfqbox(the low-level operation behind\pgftext) at all, so it's not done when the protocol is used to draw an arrow. – Luke Maurer Oct 16 '13 at 01:53