I’m currently trying to understand what to do with the links provided: marked - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
With CDN links you can add them to your html file.
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/3.0.7/marked.min.js" integrity="sha512-a+W0h6Sho4fGYABZAQg6zdWP/qtyE+gzeVfNB/UApXRLuHKh7bT3TeA/LUOno+pcDjX0Vfzgtz6crFQC3YL9lA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Should I use one of the links or both? It seems that they both have the same code, but one is formatted better.
I would just use the first one.
“.min” means something is minified. “Minified” means compressed - the code has been reduced as much as it can be, and still work, in the goal of reducing the file size as much as possible for mobile users, where sometimes every KB matters.
Generally you want to use minified files most of the time. The non-minified version can be useful if you want to read & understand what a library does.