You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apparently, according to this goldmark issue, the goldmark instance created with New can be used concurrently with multiple go routines rendering different Mardown text.
I may have misunderstood it's usage, but it seam that this property is not preserved by the use of WithCSSWriter as the same writer is shared by different concurrent Rendering operations.
It's correct or intended usage may need a clarification.
If we want to inline the css as a style in the head of the web page, we would need to support concurrent css writing. To do that it seam the the CSS writer should be passed as a context variable.
Will this option ensure that the css is written only once ?
The text was updated successfully, but these errors were encountered:
Apparently, according to this goldmark issue, the goldmark instance created with
New
can be used concurrently with multiple go routines rendering different Mardown text.I may have misunderstood it's usage, but it seam that this property is not preserved by the use of WithCSSWriter as the same writer is shared by different concurrent Rendering operations.
It's correct or intended usage may need a clarification.
If we want to inline the css as a style in the head of the web page, we would need to support concurrent css writing. To do that it seam the the CSS writer should be passed as a context variable.
Will this option ensure that the css is written only once ?
The text was updated successfully, but these errors were encountered: