Attempt to add data-continuation-str="\" with prismjs

This commit is contained in:
RealStickman 2023-06-02 08:42:27 +00:00
parent 2119ef8b08
commit 1f8e90aaaf
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class PrismShortcode extends Shortcode
'cl_filter_output' => $cl_filter_output,
'ln_start' => $ln_start,
'highlight_lines' => $highlight_lines,
'cl_continuation' => $cl_continuation,
]);
});
}

View File

@ -6,5 +6,6 @@
{% if cl_prompt %}data-prompt="{{ cl_prompt }}"{% endif %}
{% if ln_start %}data-start="{{ ln_start }}"{% endif %}
{% if highlight_lines %}data-line=" {{ highlight_lines }}"{% endif %}
{% if cl_continuation %}data-continuation-str="{{ cl_continuation }}"{% endif %}
><code>{{- content|e('html') -}}</code></pre>
</div>