# Markdown preview autoreflash

**URL:** <https://forum.cursor.com/t/markdown-preview-autoreflash/165252>\
**Category:** Feature Requests\
**Created:** [July 9, 2026, 7:16am UTC](https://forum.cursor.com/t/markdown-preview-autoreflash/165252 "2026-07-09T07:16:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_green](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/steve_green/32/110405_2.png) [@steve\_green](https://forum.cursor.com/u/steve_green)\
**Post date:** [July 9, 2026, 7:16am UTC](https://forum.cursor.com/t/markdown-preview-autoreflash/165252/1 "2026-07-09T07:16:01Z")

</div>

### Feature request for product/service

Cursor IDE

### Describe the request

my test farmwork updates an markdown file, and since cursor has markdown preview function, hope it can auto update content/refalsh page when file gots updated

### Operating System (if it applies)

Windows 10/11

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 9, 2026, 12:42pm UTC](https://forum.cursor.com/t/markdown-preview-autoreflash/165252/5 "2026-07-09T12:42:35Z")

</div>

Hi @steve_green!

Cursor should already work this way. Take a look at the screen recording below. Are you expericing something different?

---

<div class="post-metadata">

**Author:** ![steve\_green](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/steve_green/32/110405_2.png) [@steve\_green](https://forum.cursor.com/u/steve_green)\
**Post date:** [July 12, 2026, 2:59pm UTC](https://forum.cursor.com/t/markdown-preview-autoreflash/165252/7 "2026-07-12T14:59:10Z")

</div>

idk why but looks this not work with my test farmwork sometime, guess theres some bug? maybe ya guys needs run a review for it..  
looks like ya works on mac/linux, but im on windows, maybe this’s point?

```````markdown
```powershell
param(
    [string]$Path = (Join-Path $PSScriptRoot "live.md"),
    [int]$IntervalSeconds = 1
)

function U([uint32[]]$c) { -join ($c | ForEach-Object { [char]$_ }) }

$ErrorActionPreference = "Stop"
if ($IntervalSeconds -lt 1) { $IntervalSeconds = 1 }

$start = Get-Date
$tick = 0

Write-Host "$(U 0x5199,0x5165): $Path" -ForegroundColor Cyan
Write-Host "$(U 0x95F4,0x9694): ${IntervalSeconds}s | Ctrl+C $(U 0x505C,0x6B62)" -ForegroundColor DarkGray

try {
    while ($true) {
        $tick++
        $now = Get-Date
        $elapsed = $now - $start
        $barLen = [Math]::Min(50, $tick)
        $bar = ('=' * $barLen) + ('-' * (50 - $barLen))

        $content = @"
# Live Markdown

> $(U 0x6BCF,0x79D2,0x81EA,0x52A8,0x5237,0x65B0) $(U 0x00B7) $(U 0x7B2C) **$tick** $(U 0x6B21,0x66F4,0x65B0)

| $(U 0x5B57,0x6BB5) | $(U 0x503C) |
|------|-----|
| $(U 0x5F53,0x524D,0x65F6,0x95F4) | ``$($now.ToString('yyyy-MM-dd HH:mm:ss.fff'))`` |
| $(U 0x5DF2,0x8FD0,0x884C) | ``$([int]$elapsed.TotalHours):$($elapsed.ToString('mm\:ss'))`` |
| $(U 0x8FDB,0x7A0B) ID | ``$PID`` |
| $(U 0x4E3B,0x673A) | ``$env:COMPUTERNAME`` |

## $(U 0x8FDB,0x5EA6)

``````text
$([Math]::Min(100, $tick))%
$bar
``````

---

*generated by live-md.ps1*
"@

        [System.IO.File]::WriteAllText($Path, $content, [System.Text.UTF8Encoding]::new($false))
        Write-Host "`r[$($now.ToString('HH:mm:ss'))] tick $tick" -NoNewline
        Start-Sleep -Seconds $IntervalSeconds
    }
}
finally {
    Write-Host ""
    Write-Host "$(U 0x5DF2,0x505C,0x6B62,0xFF0C,0x6700,0x540E,0x5199,0x5165): $Path" -ForegroundColor Yellow
}
```

```````

![a](https://us1.discourse-cdn.com/cursor1/original/3X/f/b/fbe8fec4c523b38b22f171e34c6c5897b3d8ec1f.gif)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [July 13, 2026, 3:12pm UTC](https://forum.cursor.com/t/markdown-preview-autoreflash/165252/8 "2026-07-13T15:12:00Z")

</div>

It looks like the file you’re changing has been deleted (see the strike-through of the filename in the upper left)? I have a feeling that might be the issue.

---

<div class="post-metadata">

**Author:** ![steve\_green](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/steve_green/32/110405_2.png) [@steve\_green](https://forum.cursor.com/u/steve_green)\
**Post date:** [July 14, 2026, 2:14am UTC](https://forum.cursor.com/t/markdown-preview-autoreflash/165252/9 "2026-07-14T02:14:14Z")

</div>

oh yeah thats the point, but maybe we can continue watch when file got been deleted and recreated?  
and looks like I cant repo my test farmwork issue with shell script, but I can sure theres some issue with markdown autoreflash on windows `:(`

anyway thanks for you patientice, but I guees I dont wanna spent time on this since im disappointed for cursor, have a niceday `:)`
