How to write code that references a plugin

What I’m trying to do

I am making a vault to learn Chinese, and I want to quickly add pinyin to a bunch of Chinese poems.

Things I have tried

I have downloaded the Zhongwen Block plugin that gives you the pinyin of a code block. However, this plugin does not compute line breaks. For example, when I type:

poem line 1 <br>
poem line 2 <br>

It returns the pinyin of:

poem line 1 poem line 2

Without line breaks.

Therefore, I’m wondering if there is a “for each” command that can execute zh-cn on every line of a poem. Something like this would be great:

For each line in poem:
zh-cn line

I understand that dataviewjs and execute-code can be used to write code. However, I’m struggling to find resources for how to write code that references plugin code.

This problem can also solve another issue I have. When I use dataview to make a table of all the poems with their author and other info, I can’t include a column for pinyin because I cannot reference Zhongwen Block code in dataview.

Please let me know if writing code that references plugin code is possible. Thank you!