True handwriting of Ri hiragana


I learned hiragana in [memrise.com](http://memrise.com) which `Ri` (`り`) has
(like in `ありがとう`) a continuous form .

[![Ri
Continuous](https://i.stack.imgur.com/iyOAY.png)](https://i.stack.imgur.com/iyOAY.png)

But in most of the devices `Ri` has a discreet shape like below:

[![Ri
Discreet](https://i.stack.imgur.com/1flZy.png)](https://i.stack.imgur.com/1flZy.png)

So I am confused which one is true for handwriting? Are their usage is
different?

Thanks for any help.

