SVGs generated by RDKit do not match the figures in the PDF, we need to use output from molconvert instead.
Approach:
Display molconvert SVGs returned by the results endpoint.
To ensure the rendered SVG fits in the column, first remove the height and width attributes from SVG and add the viewBox attribute instead which makes the SVG maintain its aspect ratio while filling its parent div.
Problem:
Approach:
results
endpoint.viewBox
attribute instead which makes the SVG maintain its aspect ratio while filling its parent div.How to test: