Skip to content

Is there a way to convert prism html to a properly formatted text string? #3671

Closed Answered by doucol
doucol asked this question in Q&A
Discussion options

You must be logged in to vote

The html-to-text utility was stripping off leading spaces after a newline (<br>) - perhaps a bug! By simply collecting all span.token-line elements and grabbing their inner text values, I was able to stitch it together easily.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by doucol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant