I apologize if this is not the right way to go about asking such a question. I am interested in understanding the proof in this question about this theorem.
Let $M$,$N$ be compact connected Riemann surfaces, $X⊂M$ a finite subset. Then every biholomorphic embedding $f:M−X→N$ will extend to a biholomorphic map $M→N$.
I have understood almost all of the first proof given in the answer, however there is one point missing.
$h|D−{x}$ extends to a holomorphic function to the entire disk D. It follows that $f|D−{x}$ also extends to a (necessarily injective) holomorphic function $D→N$
The fact that $h$ extends to a holomorphic function to all of $D$ is clear. What is less clear is how it follows from this that $f$ extends to a holomorphic function to all of $D$. The case where $h(x)$ is not a branch point for $g$ should be clear, because we know that there exists a neighbourhood of $h(x)$ evenly covered by $g$ , and we can suppose $D$ small enough so that $h(D)$ is contained in this neighbourhood, and then we can take the local inverse of $g$ that agrees with $f$ everywhere except for $x$ , and extend $f(x)$ to the value of this local inverse on $h(x)$. By composing $h$ with the local inverse, this extension of $f$ is obviously holomorphic. (Please correct me if I have made any mistakes)
However, in the case where $h(x)$ is a branch point for $g$ , how is one to proceed? I was thinking we could use the fact that there exist local coordinates where $g$ looks like a power, which is probably the only tool I can use, but I can't seem to formalize the arguement.