What does ようにと言う mean in 薬を飲んで様子を見るようにと言われました？


This is the context:

> 今朝はここちゃんを動物病院に連れて行きました。診断結果はスナッフルでした。うさぎにはよくある病気で、薬を飲んで様子を見る **ようにと言われました**
> 。

I know the expression ように言う, but why is there a と in ~ように **と** 言われました?




It's a matter of punctuation.

（先生）「薬を飲んで、様子を見るように！」

と（先生に）言われました。

If you break it down like that, it should make sense. The confusing part (for
the latin-based language speakers) is that it is fine to omit the quotes, it
is a form of narrative that is frequently used. It's akin to "I've been told
to take meds and see how it goes." vs "I have been told, 'Take meds, and see
how it goes.'"

