Anchor links to paragraph content
First you need to set up an ID for the paragraphs. You can do this in oko_preprocess_paragraph():

/**
 * Implements template_preprocess_paragraph().
 */
function THEME_preprocess_paragraph(&amp;$variables) {
  $variables['paragraph_id'] = $variables['paragraph']-&gt;id();
}


Now, you can output the ID of the paragraph using {{ paragraph_id }} in any paragraph templates you have. So you can copy paragraph.html.twig to your theme, and change this:

&lt;div{{ attributes.addClass(classes) }}&gt;


To this:

&lt;div{{ attributes.addClass(classes) }} id="paragraph-{{ paragraph_id }}"&gt;