Skip to content

Commit bb0907e

Browse files
authored
fix: instant preview not showing for non-ASCII anchors (#74)
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
1 parent 85fc426 commit bb0907e

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

dist/assets/javascripts/bundle.5fcf0de6.min.js renamed to dist/assets/javascripts/bundle.b5786ce5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/stylesheets/modern/main.25059db2.min.css renamed to dist/assets/stylesheets/modern/main.28978c9b.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/stylesheets/modern/main.76bc8d2c.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% endblock %}
4848
{% block styles %}
4949
{% if config.theme.variant == "modern" %}
50-
{% set href = 'assets/stylesheets/modern/main.76bc8d2c.min.css' | url %}
50+
{% set href = 'assets/stylesheets/modern/main.28978c9b.min.css' | url %}
5151
{% else %}
5252
{% set href = 'assets/stylesheets/classic/main.d9d44b50.min.css' | url %}
5353
{% endif %}
@@ -250,7 +250,7 @@
250250
</script>
251251
{% endblock %}
252252
{% block scripts %}
253-
<script src="{{ 'assets/javascripts/bundle.5fcf0de6.min.js' | url }}"></script>
253+
<script src="{{ 'assets/javascripts/bundle.b5786ce5.min.js' | url }}"></script>
254254
{% for script in config.extra_javascript %}
255255
{{ script | script_tag }}
256256
{% endfor %}

src/assets/javascripts/components/content/link/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export function mountLink(
238238
switchMap(url => fetchDocument(url)),
239239
switchMap(doc => {
240240
const selector = el.hash
241-
? `article [id="${el.hash.slice(1)}"]`
241+
? `article [id="${decodeURIComponent(el.hash.slice(1))}"]`
242242
: "article h1"
243243

244244
//

0 commit comments

Comments
 (0)