# Obsidian Fails to Open/Edit Specific Markdown File, Throwing "t.hideFirstChars is not a function" Error

**URL:** <https://forum.obsidian.md/t/obsidian-fails-to-open-edit-specific-markdown-file-throwing-t-hidefirstchars-is-not-a-function-error/106428>\
**Category:** Bug graveyard\
**Tags:** repro\
**Created:** [October 3, 2025, 1:09pm UTC](https://forum.obsidian.md/t/obsidian-fails-to-open-edit-specific-markdown-file-throwing-t-hidefirstchars-is-not-a-function-error/106428 "2025-10-03T13:09:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![musnows](https://forum.obsidian.md/user_avatar/forum.obsidian.md/musnows/32/85516_2.png) [@musnows](https://forum.obsidian.md/u/musnows)\
**Post date:** [October 3, 2025, 1:09pm UTC](https://forum.obsidian.md/t/obsidian-fails-to-open-edit-specific-markdown-file-throwing-t-hidefirstchars-is-not-a-function-error/106428/1 "2025-10-03T13:09:40Z")

</div>

## Bug Report

## Problem Description and Reprodu ction Steps

Obsidian cannot handle my blog post at all. This post cannot be edited, and it even throws an error and fails to open when I click to access it. All other posts work normally.

I checked but found no hidden characters in the post, which is very strange.

The error message is as follows:

```plaintext
Uncaught (in promise) TypeError: t.hideFirstChars is not a function
    at h (modes.min.js:142:1412)
    at Object.token (modes.min.js:142:2656)
    at Object.local (markdown.js:333:28)
    at Object.token (markdown.js:938:18)
    at app.js:1:1616416
    at Vd (app.js:1:652114)
    at d (app.js:1:650682)
    at e.parseLine (app.js:1:651118)
    at e.advance (app.js:1:648781)
    at app.js:1:617196

```

The problematic Markdown file is available at:  
github/musnows/musnows/blob/main/data/err\_ob\_post.md

I have posted this question on the Chinese version of the forum, and a community member replied that it is related to the Pug code block in the Markdown file. However, I don’t have my macbook with me right now, so I can’t test this temporarily.

## Have You Performed Troubleshooting as Per the Bug Troubleshooting Guide?

Yes, I reinstalled Obsidian and tested it in sandbox mode, but the error still occurred (as shown in the image). The post remains completely uneditable.

 ![17594966713931777054083573908058](https://forum.obsidian.md/uploads/default/original/3X/5/8/58200dcd9b31832d862d2f2cdda9e5c8c0df5aab.jpeg)

## Expected Outcome

The post should be editable normally.

## Current Obsidian Version and Installation Environment

Device: macOS 15.4 arm m3

```auto
  
SYSTEM INFO:
	Obsidian version: v1.9.14
	Installer version: v1.9.14
	Operating system: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 24.3.0
	Login status: not logged in
	Language: zh
	Insider build toggle: off
	Live preview: on
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

```

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [December 9, 2025, 2:42pm UTC](https://forum.obsidian.md/t/obsidian-fails-to-open-edit-specific-markdown-file-throwing-t-hidefirstchars-is-not-a-function-error/106428/3 "2025-12-09T14:42:08Z")

</div>

I narrowed it down to

````auto
```pug
script.
  window.GLOBAL_CONFIG = 
```

````

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [December 10, 2025, 12:49am UTC](https://forum.obsidian.md/t/obsidian-fails-to-open-edit-specific-markdown-file-throwing-t-hidefirstchars-is-not-a-function-error/106428/4 "2025-12-10T00:49:26Z")

</div>

will be fixed v1.11.x. No ETAs.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [January 7, 2026, 12:50am UTC](https://forum.obsidian.md/t/obsidian-fails-to-open-edit-specific-markdown-file-throwing-t-hidefirstchars-is-not-a-function-error/106428/5 "2026-01-07T00:50:23Z")

</div>

Closed on January 7, 2026, 12:50am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
