Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="outer">

  <div class="inner">
    <div id="container1" class="container">
    </div>
  </div>
  <div class="inner">
    <div id="container2" class="container">
    </div>
  </div>
  
</div>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
}

body {
  margin: 0;
}

div {
  display: inline-block;
}

.outer {
  background-color: dimgray;
  width: 100vw;
  height: 100vh;
}

.inner {
  width: 49%;
  height: 100%;
  padding: 1%;
}

.container {
  width: 100%;
  height: 100%;
  border-radius: 1em;
  overflow: hidden;
}
              
            
!

JS

              
                const md = molDraw;

const molecule1 = `
6f
                    3D
 Structure written by MMmdl.
  0  0  0     0  0            999 V3000
M  V30 BEGIN CTAB
M  V30 COUNTS 84 90 0 0 0
M  V30 BEGIN ATOM
M  V30 1 O  -1.0658 -2.3144 -7.6973 0
M  V30 2 C  -1.7339 -1.6464 -6.9083 0
M  V30 3 C  -1.3215 -1.3392 -5.5140 0
M  V30 4 C  -2.1411 -0.5402 -4.7104 0
M  V30 5 C  -1.7565 -0.2473 -3.4047 0
M  V30 6 C  -0.1186 -1.8386 -5.0030 0
M  V30 7 C  0.2586 -1.5401 -3.6971 0
M  V30 8 C  -0.5573 -0.7450 -2.8875 0
M  V30 9 C  -0.1528 -0.4236 -1.4839 0
M  V30 10 C  -0.1896 -1.4245 -0.4923 0
M  V30 11 C  -0.6388 -2.8055 -0.8385 0
M  V30 12 C  0.2944 -3.7986 -1.1447 0
M  V30 13 C  -0.1270 -5.0843 -1.4703 0
M  V30 14 C  -1.4925 -5.3888 -1.4865 0
M  V30 15 C  -2.4302 -4.3982 -1.1776 0
M  V30 16 C  -2.0008 -3.1133 -0.8577 0
M  V30 17 C  0.1638 -1.1168 0.8353 0
M  V30 18 C  0.1202 -2.1791 1.8832 0
M  V30 19 C  1.2166 -3.0226 2.0774 0
M  V30 20 C  1.1735 -4.0259 3.0421 0
M  V30 21 C  0.0265 -4.1889 3.8262 0
M  V30 22 C  -0.0179 -5.2665 4.8494 0
M  V30 23 O  -0.9835 -5.4927 5.5792 0
M  V30 24 C  -1.0715 -3.3415 3.6391 0
M  V30 25 C  -1.0211 -2.3427 2.6710 0
M  V30 26 C  0.5452 0.1942 1.1767 0
M  V30 27 C  0.9272 0.5155 2.5830 0
M  V30 28 C  -0.0330 0.9722 3.4883 0
M  V30 29 C  0.3232 1.2760 4.7993 0
M  V30 30 C  1.6500 1.1200 5.2165 0
M  V30 31 C  2.0439 1.4411 6.6134 0
M  V30 32 O  1.2696 1.8547 7.4765 0
M  V30 33 C  2.6139 0.6581 4.3140 0
M  V30 34 C  2.2496 0.3591 3.0034 0
M  V30 35 C  0.5829 1.1966 0.1884 0
M  V30 36 C  1.0071 2.5821 0.5501 0
M  V30 37 C  2.3099 3.0110 0.2848 0
M  V30 38 C  2.7061 4.3065 0.6064 0
M  V30 39 C  1.7930 5.1867 1.1967 0
M  V30 40 C  2.2149 6.5729 1.5263 0
M  V30 41 O  1.4780 7.4216 2.0276 0
M  V30 42 C  0.4880 4.7606 1.4671 0
M  V30 43 C  0.1014 3.4631 1.1462 0
M  V30 44 C  0.2422 0.8875 -1.1442 0
M  V30 45 C  0.3109 1.9463 -2.1988 0
M  V30 46 C  -0.6149 2.9932 -2.2155 0
M  V30 47 C  -0.5520 3.9761 -3.1984 0
M  V30 48 C  0.4433 3.9198 -4.1799 0
M  V30 49 C  1.3722 2.8747 -4.1695 0
M  V30 50 C  1.3019 1.8956 -3.1828 0
M  V30 51 H  -2.6985 -1.2327 -7.2035 0
M  V30 52 H  -3.0753 -0.1385 -5.0792 0
M  V30 53 H  -2.3903 0.3733 -2.7873 0
M  V30 54 H  0.5248 -2.4614 -5.6116 0
M  V30 55 H  1.1869 -1.9327 -3.3093 0
M  V30 56 H  1.3496 -3.5700 -1.1331 0
M  V30 57 H  0.6102 -5.8397 -1.7100 0
M  V30 58 H  -3.4916 -4.6055 -1.1820 0
M  V30 59 H  -2.7264 -2.3490 -0.6212 0
M  V30 60 H  2.1009 -2.9013 1.4691 0
M  V30 61 H  2.0351 -4.6688 3.1629 0
M  V30 62 H  0.8871 -5.8711 4.9188 0
M  V30 63 H  -1.9668 -3.4549 4.2373 0
M  V30 64 H  -1.8730 -1.6944 2.5272 0
M  V30 65 H  -1.0585 1.0939 3.1719 0
M  V30 66 H  -0.4352 1.6321 5.4855 0
M  V30 67 H  3.0983 1.2826 6.8402 0
M  V30 68 H  3.6460 0.5264 4.6099 0
M  V30 69 H  2.9949 0.0038 2.3070 0
M  V30 70 H  3.0125 2.3344 -0.1799 0
M  V30 71 H  3.7201 4.6107 0.3842 0
M  V30 72 H  3.2542 6.8042 1.2908 0
M  V30 73 H  -0.2304 5.4316 1.9211 0
M  V30 74 H  -0.9088 3.1422 1.3542 0
M  V30 75 H  -1.3852 3.0449 -1.4601 0
M  V30 76 H  -1.2786 4.7786 -3.1917 0
M  V30 77 H  2.1494 2.8028 -4.9181 0
M  V30 78 H  2.0166 1.0854 -3.1818 0
M  V30 79 C  -1.9551 -6.7582 -1.8328 0
M  V30 80 C  0.5174 4.9591 -5.2394 0
M  V30 81 O  -1.2048 -7.6897 -2.1242 0
M  V30 82 O  -0.2715 5.8981 -5.3455 0
M  V30 83 H  1.3431 4.8404 -5.9418 0
M  V30 84 H  -3.0369 -6.8959 -1.8138 0
M  V30 END ATOM
M  V30 BEGIN BOND
M  V30 1 2 1 2
M  V30 2 1 2 3
M  V30 3 1 2 51
M  V30 4 2 3 4
M  V30 5 1 3 6
M  V30 6 1 4 5
M  V30 7 1 4 52
M  V30 8 2 5 8
M  V30 9 1 5 53
M  V30 10 2 6 7
M  V30 11 1 6 54
M  V30 12 1 7 8
M  V30 13 1 7 55
M  V30 14 1 8 9
M  V30 15 2 9 10
M  V30 16 1 9 44
M  V30 17 1 10 11
M  V30 18 1 10 17
M  V30 19 2 11 12
M  V30 20 1 11 16
M  V30 21 1 12 13
M  V30 22 1 12 56
M  V30 23 2 13 14
M  V30 24 1 13 57
M  V30 25 1 14 15
M  V30 26 1 14 79
M  V30 27 2 15 16
M  V30 28 1 15 58
M  V30 29 1 16 59
M  V30 30 1 17 18
M  V30 31 2 17 26
M  V30 32 2 18 19
M  V30 33 1 18 25
M  V30 34 1 19 20
M  V30 35 1 19 60
M  V30 36 2 20 21
M  V30 37 1 20 61
M  V30 38 1 21 22
M  V30 39 1 21 24
M  V30 40 2 22 23
M  V30 41 1 22 62
M  V30 42 2 24 25
M  V30 43 1 24 63
M  V30 44 1 25 64
M  V30 45 1 26 27
M  V30 46 1 26 35
M  V30 47 2 27 28
M  V30 48 1 27 34
M  V30 49 1 28 29
M  V30 50 1 28 65
M  V30 51 2 29 30
M  V30 52 1 29 66
M  V30 53 1 30 31
M  V30 54 1 30 33
M  V30 55 2 31 32
M  V30 56 1 31 67
M  V30 57 2 33 34
M  V30 58 1 33 68
M  V30 59 1 34 69
M  V30 60 1 35 36
M  V30 61 2 35 44
M  V30 62 2 36 37
M  V30 63 1 36 43
M  V30 64 1 37 38
M  V30 65 1 37 70
M  V30 66 2 38 39
M  V30 67 1 38 71
M  V30 68 1 39 40
M  V30 69 1 39 42
M  V30 70 2 40 41
M  V30 71 1 40 72
M  V30 72 2 42 43
M  V30 73 1 42 73
M  V30 74 1 43 74
M  V30 75 1 44 45
M  V30 76 2 45 46
M  V30 77 1 45 50
M  V30 78 1 46 47
M  V30 79 1 46 75
M  V30 80 2 47 48
M  V30 81 1 47 76
M  V30 82 1 48 49
M  V30 83 1 48 80
M  V30 84 2 49 50
M  V30 85 1 49 77
M  V30 86 1 50 78
M  V30 87 2 79 81
M  V30 88 1 79 84
M  V30 89 2 80 82
M  V30 90 1 80 83
M  V30 END BOND
M  V30 END CTAB
M  END

`;

const molecule2 = `
 OpenBabel01301908503D

  0  0  0     0  0            999 V3000
M  V30 BEGIN CTAB
M  V30 COUNTS 168 180 0 0 1
M  V30 BEGIN ATOM
M  V30 1 C 4.7225 2.0878 -0.8784 0
M  V30 2 C 4.1107 1.04 -1.7079 0
M  V30 3 C 3.3187 1.339 -2.8256 0
M  V30 4 C 2.7626 0.3328 -3.6242 0
M  V30 5 C 1.9631 0.7016 -4.8011 0
M  V30 6 C 3.0075 -1.003 -3.2757 0
M  V30 7 C 3.7929 -1.3427 -2.1678 0
M  V30 8 C 4.0414 -2.759 -1.8636 0
M  V30 9 C 4.332 -0.3058 -1.3929 0
M  V30 10 H 5.2462 1.7156 -0.0005 0
M  V30 11 H 3.146 2.3773 -3.0777 0
M  V30 12 H 1.7902 1.7703 -4.9083 0
M  V30 13 H 2.5839 -1.7867 -3.8903 0
M  V30 14 H 3.5004 -3.4556 -2.5007 0
M  V30 15 H 4.9432 -0.5605 -0.5368 0
M  V30 16 C -4.7182 -2.0679 -0.9431 0
M  V30 17 C -4.1026 -1.0027 -1.7471 0
M  V30 18 C -3.3056 -1.2778 -2.8675 0
M  V30 19 C -2.7459 -0.2549 -3.6419 0
M  V30 20 C -1.9414 -0.5986 -4.823 0
M  V30 21 C -2.9922 1.0732 -3.2659 0
M  V30 22 C -3.7825 1.3893 -2.1546 0
M  V30 23 C -4.0323 2.7988 -1.8214 0
M  V30 24 C -4.3252 0.3362 -1.4045 0
M  V30 25 H -5.2456 -1.7146 -0.0596 0
M  V30 26 H -3.132 -2.3105 -3.141 0
M  V30 27 H -1.7681 -1.6648 -4.9522 0
M  V30 28 H -2.5658 1.8698 -3.8619 0
M  V30 29 H -3.4882 3.5087 -2.4408 0
M  V30 30 H -4.9403 0.5726 -0.5459 0
M  V30 31 C 0.6592 1.8936 4.8346 0
M  V30 32 C 0.3133 2.7116 3.6635 0
M  V30 33 C -1.0155 2.9743 3.3014 0
M  V30 34 C -1.3334 3.7771 2.1996 0
M  V30 35 C -2.7433 4.0434 1.8809 0
M  V30 36 C -0.2816 4.3156 1.4448 0
M  V30 37 C 1.058 4.077 1.7737 0
M  V30 38 C 2.1221 4.6891 0.9654 0
M  V30 39 C 1.335 3.2678 2.8847 0
M  V30 40 H 1.7246 1.7084 4.953 0
M  V30 41 H -1.811 2.5509 3.9008 0
M  V30 42 H -3.4531 3.5011 2.5019 0
M  V30 43 H -0.5194 4.9402 0.5934 0
M  V30 44 H 1.766 5.2277 0.0898 0
M  V30 45 H 2.3683 3.0816 3.1476 0
M  V30 46 C 2.735 -4.0827 1.8056 0
M  V30 47 C 1.3237 -3.8231 2.1235 0
M  V30 48 C 0.2753 -4.3452 1.3526 0
M  V30 49 C -1.0657 -4.1139 1.6808 0
M  V30 50 C -2.1262 -4.7084 0.8549 0
M  V30 51 C -1.3477 -3.329 2.808 0
M  V30 52 C -0.3295 -2.7898 3.603 0
M  V30 53 C -0.6805 -1.9972 4.7899 0
M  V30 54 C 1.001 -3.0445 3.2411 0
M  V30 55 H 3.442 -3.5541 2.4415 0
M  V30 56 H 0.5169 -4.9512 0.489 0
M  V30 57 H -1.7663 -5.2279 -0.0306 0
M  V30 58 H -2.3822 -3.1486 3.0702 0
M  V30 59 H -1.7465 -1.8145 4.9075 0
M  V30 60 H 1.7938 -2.6341 3.853 0
M  V30 61 C 0.7248 0.4083 -9.3441 0
M  V30 62 H 0.6466 1.4952 -9.4072 0
M  V30 63 C -0.6846 -0.2099 -9.3533 0
M  V30 64 H 1.2771 0.0925 -10.2305 0
M  V30 65 H -1.2333 0.1243 -10.2352 0
M  V30 66 C -1.4692 0.1505 -8.0764 0
M  V30 67 H -0.606 -1.2953 -9.4386 0
M  V30 68 H -1.6766 1.2224 -8.0778 0
M  V30 69 C -0.7057 -0.2307 -6.7838 0
M  V30 70 H -2.4415 -0.3442 -8.0932 0
M  V30 71 C 0.7356 0.3753 -6.7745 0
M  V30 72 H -0.5927 -1.3211 -6.7931 0
M  V30 73 C 1.5043 0.0214 -8.0717 0
M  V30 74 H 0.6226 1.4657 -6.7612 0
M  V30 75 H 1.7118 -1.0502 -8.0948 0
M  V30 76 H 2.4766 0.5164 -8.0743 0
M  V30 77 N -1.4821 0.262 -5.6467 0
M  V30 78 N 1.5074 -0.1413 -5.6449 0
M  V30 79 C 6.1389 7.0892 0.364 0
M  V30 80 H 5.6947 7.6531 -0.4583 0
M  V30 81 C 7.1515 6.0747 -0.1964 0
M  V30 82 H 6.651 7.8208 0.991 0
M  V30 83 H 7.8953 6.5881 -0.8078 0
M  V30 84 C 6.4542 4.9778 -1.0251 0
M  V30 85 H 7.7011 5.6152 0.6271 0
M  V30 86 H 6.0379 5.4266 -1.9292 0
M  V30 87 C 5.3314 4.261 -0.2349 0
M  V30 88 H 7.1933 4.25 -1.3633 0
M  V30 89 C 4.3089 5.2853 0.3568 0
M  V30 90 H 5.8116 3.7627 0.6155 0
M  V30 91 C 5.0256 6.3915 1.1701 0
M  V30 92 H 3.8258 5.7806 -0.4936 0
M  V30 93 H 5.4592 5.96 2.0744 0
M  V30 94 H 4.3001 7.1329 1.5085 0
M  V30 95 N 4.6655 3.3342 -1.1493 0
M  V30 96 N 3.3644 4.6165 1.251 0
M  V30 97 C 6.382 -6.8473 0.6603 0
M  V30 98 H 7.0193 -6.3263 1.3772 0
M  V30 99 C 6.7797 -6.4422 -0.7703 0
M  V30 100 H 6.5642 -7.9124 0.8112 0
M  V30 101 H 7.8418 -6.6335 -0.931 0
M  V30 102 C 6.4634 -4.9592 -1.0474 0
M  V30 103 H 6.247 -7.0687 -1.488 0
M  V30 104 H 7.1148 -4.3362 -0.4313 0
M  V30 105 C 4.9826 -4.6054 -0.7627 0
M  V30 106 H 6.7101 -4.7203 -2.083 0
M  V30 107 C 4.5631 -5.0324 0.6816 0
M  V30 108 H 4.3766 -5.1974 -1.4586 0
M  V30 109 C 4.9044 -6.5188 0.9516 0
M  V30 110 H 5.1666 -4.4378 1.3775 0
M  V30 111 H 4.2702 -7.159 0.3354 0
M  V30 112 H 4.6713 -6.7714 1.9871 0
M  V30 113 N 4.8275 -3.1623 -0.9419 0
M  V30 114 N 3.1231 -4.8645 0.8738 0
M  V30 115 C -6.776 6.458 -0.6628 0
M  V30 116 H -6.2398 7.0997 -1.3643 0
M  V30 117 C -6.3854 6.8323 0.7781 0
M  V30 118 H -7.8373 6.6529 -0.8247 0
M  V30 119 H -6.5684 7.894 0.9509 0
M  V30 120 C -4.9093 6.4976 1.0695 0
M  V30 121 H -7.0261 6.2961 1.4805 0
M  V30 122 H -4.2721 7.151 0.4703 0
M  V30 123 C -4.5663 5.0173 0.7693 0
M  V30 124 H -4.6812 6.7279 2.1113 0
M  V30 125 C -4.9789 4.6214 -0.6859 0
M  V30 126 H -5.173 4.4079 1.4494 0
M  V30 127 C -6.4583 4.9813 -0.97 0
M  V30 128 H -4.3696 5.228 -1.366 0
M  V30 129 H -7.1126 4.3453 -0.3705 0
M  V30 130 H -6.7001 4.7647 -2.0116 0
M  V30 131 N -3.1272 4.8454 0.9646 0
M  V30 132 N -4.8229 3.1824 -0.8951 0
M  V30 133 C -7.1505 -6.0682 -0.3579 0
M  V30 134 H -7.7036 -5.6266 0.4731 0
M  V30 135 C -6.1403 -7.0947 0.1849 0
M  V30 136 H -7.8916 -6.5682 -0.9834 0
M  V30 137 H -6.6552 -7.8396 0.7937 0
M  V30 138 C -5.0305 -6.4147 1.0106 0
M  V30 139 H -5.6926 -7.6408 -0.6475 0
M  V30 140 H -5.4681 -6.0025 1.922 0
M  V30 141 C -4.3103 -5.2913 0.2244 0
M  V30 142 H -4.3066 -7.1633 1.3362 0
M  V30 143 C -5.3302 -4.2544 -0.3493 0
M  V30 144 H -3.8236 -5.7683 -0.6344 0
M  V30 145 C -6.4497 -4.9537 -1.1596 0
M  V30 146 H -5.814 -3.7745 0.5095 0
M  V30 147 H -6.0296 -5.3828 -2.0715 0
M  V30 148 H -7.1873 -4.2187 -1.4851 0
M  V30 149 N -3.3697 -4.6421 1.1368 0
M  V30 150 N -4.6603 -3.3082 -1.2407 0
M  V30 151 C 0.2958 0.6009 9.3572 0
M  V30 152 H 1.3809 0.5103 9.4327 0
M  V30 153 C -0.3374 -0.8018 9.3408 0
M  V30 154 H -0.0253 1.1453 10.2466 0
M  V30 155 H -0.0203 -1.365 10.2198 0
M  V30 156 C 0.031 -1.5741 8.0587 0
M  V30 157 H -1.4229 -0.7127 9.4134 0
M  V30 158 H 1.1006 -1.7929 8.0711 0
M  V30 159 C -0.3255 -0.7904 6.7711 0
M  V30 160 H -0.474 -2.5412 8.0568 0
M  V30 161 C 0.2954 0.6445 6.7879 0
M  V30 162 H -1.4148 -0.6662 6.7679 0
M  V30 163 C -0.0669 1.4005 8.0902 0
M  V30 164 H 1.3846 0.5204 6.7868 0
M  V30 165 H -1.1366 1.6191 8.1025 0
M  V30 166 H 0.438 2.3674 8.1114 0
M  V30 167 N 0.1739 -1.5574 5.6306 0
M  V30 168 N -0.199 1.4358 5.6618 0
M  V30 END ATOM
M  V30 BEGIN BOND
M  V30 1 1 1 10
M  V30 2 1 1 2
M  V30 3 2 1 95
M  V30 4 1 2 3
M  V30 5 2 2 9
M  V30 6 1 3 11
M  V30 7 2 3 4
M  V30 8 1 4 5
M  V30 9 1 4 6
M  V30 10 1 5 12
M  V30 11 2 5 78
M  V30 12 1 6 13
M  V30 13 2 6 7
M  V30 14 1 7 9
M  V30 15 1 7 8
M  V30 16 1 8 14
M  V30 17 2 8 113
M  V30 18 1 9 15
M  V30 19 1 16 25
M  V30 20 1 16 17
M  V30 21 2 16 150
M  V30 22 1 17 18
M  V30 23 2 17 24
M  V30 24 1 18 26
M  V30 25 2 18 19
M  V30 26 1 19 20
M  V30 27 1 19 21
M  V30 28 1 20 27
M  V30 29 2 20 77
M  V30 30 1 21 28
M  V30 31 2 21 22
M  V30 32 1 22 24
M  V30 33 1 22 23
M  V30 34 1 23 29
M  V30 35 2 23 132
M  V30 36 1 24 30
M  V30 37 1 31 40
M  V30 38 1 31 32
M  V30 39 2 31 168
M  V30 40 1 32 33
M  V30 41 2 32 39
M  V30 42 1 33 41
M  V30 43 2 33 34
M  V30 44 1 34 35
M  V30 45 1 34 36
M  V30 46 1 35 42
M  V30 47 2 35 131
M  V30 48 1 36 43
M  V30 49 2 36 37
M  V30 50 1 37 39
M  V30 51 1 37 38
M  V30 52 1 38 44
M  V30 53 2 38 96
M  V30 54 1 39 45
M  V30 55 1 46 55
M  V30 56 1 46 47
M  V30 57 2 46 114
M  V30 58 1 47 48
M  V30 59 2 47 54
M  V30 60 1 48 56
M  V30 61 2 48 49
M  V30 62 1 49 50
M  V30 63 1 49 51
M  V30 64 1 50 57
M  V30 65 2 50 149
M  V30 66 1 51 58
M  V30 67 2 51 52
M  V30 68 1 52 54
M  V30 69 1 52 53
M  V30 70 1 53 59
M  V30 71 2 53 167
M  V30 72 1 54 60
M  V30 73 1 61 62
M  V30 74 1 61 63
M  V30 75 1 61 64
M  V30 76 1 61 73
M  V30 77 1 63 65
M  V30 78 1 63 66
M  V30 79 1 63 67
M  V30 80 1 66 68
M  V30 81 1 66 69
M  V30 82 1 66 70
M  V30 83 1 69 71
M  V30 84 1 69 72 CFG=1
M  V30 85 1 69 77
M  V30 86 1 71 74 CFG=1
M  V30 87 1 71 73
M  V30 88 1 71 78
M  V30 89 1 73 75
M  V30 90 1 73 76
M  V30 91 1 79 80
M  V30 92 1 79 81
M  V30 93 1 79 82
M  V30 94 1 79 91
M  V30 95 1 81 83
M  V30 96 1 81 84
M  V30 97 1 81 85
M  V30 98 1 84 86
M  V30 99 1 84 87
M  V30 100 1 84 88
M  V30 101 1 87 89
M  V30 102 1 87 90 CFG=1
M  V30 103 1 87 95
M  V30 104 1 89 92 CFG=6
M  V30 105 1 89 91
M  V30 106 1 89 96
M  V30 107 1 91 93
M  V30 108 1 91 94
M  V30 109 1 97 98
M  V30 110 1 97 99
M  V30 111 1 97 100
M  V30 112 1 97 109
M  V30 113 1 99 101
M  V30 114 1 99 102
M  V30 115 1 99 103
M  V30 116 1 102 104
M  V30 117 1 102 105
M  V30 118 1 102 106
M  V30 119 1 105 107
M  V30 120 1 105 108 CFG=6
M  V30 121 1 105 113
M  V30 122 1 107 110 CFG=1
M  V30 123 1 107 109
M  V30 124 1 107 114
M  V30 125 1 109 111
M  V30 126 1 109 112
M  V30 127 1 115 116
M  V30 128 1 115 117
M  V30 129 1 115 118
M  V30 130 1 115 127
M  V30 131 1 117 119
M  V30 132 1 117 120
M  V30 133 1 117 121
M  V30 134 1 120 122
M  V30 135 1 120 123
M  V30 136 1 120 124
M  V30 137 1 123 125
M  V30 138 1 123 126 CFG=1
M  V30 139 1 123 131
M  V30 140 1 125 128 CFG=6
M  V30 141 1 125 127
M  V30 142 1 125 132
M  V30 143 1 127 129
M  V30 144 1 127 130
M  V30 145 1 133 134
M  V30 146 1 133 135
M  V30 147 1 133 136
M  V30 148 1 133 145
M  V30 149 1 135 137
M  V30 150 1 135 138
M  V30 151 1 135 139
M  V30 152 1 138 140
M  V30 153 1 138 141
M  V30 154 1 138 142
M  V30 155 1 141 143
M  V30 156 1 141 144 CFG=6
M  V30 157 1 141 149
M  V30 158 1 143 146 CFG=1
M  V30 159 1 143 145
M  V30 160 1 143 150
M  V30 161 1 145 147
M  V30 162 1 145 148
M  V30 163 1 151 152
M  V30 164 1 151 153
M  V30 165 1 151 154
M  V30 166 1 151 163
M  V30 167 1 153 155
M  V30 168 1 153 156
M  V30 169 1 153 157
M  V30 170 1 156 158
M  V30 171 1 156 159
M  V30 172 1 156 160
M  V30 173 1 159 161
M  V30 174 1 159 162 CFG=6
M  V30 175 1 159 167
M  V30 176 1 161 164 CFG=6
M  V30 177 1 161 163
M  V30 178 1 161 168
M  V30 179 1 163 165
M  V30 180 1 163 166
M  V30 END BOND
M  V30 END CTAB
M  END

`;

const maybeMolecule1 = md.maybeParseV3000(molecule1);
if (md.isLeft(maybeMolecule1))
{
    console.log('Issue with preview molecule 1.');
    console.log(md.fromLeft()(maybeMolecule1));
}
else
{
    md.drawMol({})({
        containerId: 'container1',
    })(md.fromRight()(maybeMolecule1));
}

const maybeMolecule2 = md.maybeParseV3000(molecule2);
if (md.isLeft(maybeMolecule2))
{
    console.log('Issue with preview molecule 2.');
    console.log(md.fromLeft()(maybeMolecule2));
}
else
{
    md.drawMol({
      material: color => new THREE.MeshNormalMaterial(),
    })({
        containerId: 'container2',
      outline: false,
    })(md.fromRight()(maybeMolecule2));
}
              
            
!
999px

Console