refactor(`/code *`): rework handling of resulting context
Opened this issue · 0 comments
sudojunior commented
The construction of the resulting content was purpose built to be passed directly to the returned object as a matching variable, and while that is favourable for a direct pass-through... not so much for the while loop, which repeatedly splits and joins the string until it has been trimmed to size. #47 would be designed to work around this mechanism, but for its own reason.
Intention to rework content
as lines
which remains held in its array format, so that the while loop can use the array without needing code to split and join.
Lines 193 to 203 in 9bafefb