math2001 / MarkdownLivePreview

A Sublime Text 3 plugin to preview your markdown as you type
https://math2001.github.io/MarkdownLivePreview
MIT License
304 stars 37 forks source link

Not showing properly, HTML elements being displayed in preview #94

Open Nanorithm opened 4 years ago

Nanorithm commented 4 years ago

image

As you can see above, the preview is showing the HTML elements of the markdown conversion. For reference, this is my MD format:

# Counting
ls | wc -l                                                                              # Count files in a directory (including directories)
find -type f | sed -e 's/.*\.//' | sort | uniq -c                                       # Count files in directory per each type of extension
ls | grep '\.jpg$' | wc -l                                                              # Count all files in a directory with one particular extension

# Listing
ls | grep '\.jpg$'                                                                      # List all files with a particular extension
find -type f -size +50000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'              # Find all files in a directory with a specific size value (50000k or larger)
du --max-depth=1 | sort -n | awk 'BEGIN {OFMT = "%.0f"} {print $1/1024,"MB", $2}'       # List all folders in a directory sorted by MB

# Compare
diff <(cd folder1 && find . | sort) <(cd folder2 && find . | sort)                      # Compare the contents fo two folders

# Bulk Jobs
rename 's/\.htm$/\.html/' *.htm                                                         # Bulk rename all files in a folder (from .htm to .html)
rename -n 's/\.htm$/\.html/' *.htm                                                      # Test run, doesn't actually change but shows proposed changes

# Backup 
`sudo -u advadmin cp -p filename newfilename.txt.YYYYMMDD`                              # Create a file backup

# Search
grep -rl "looking_for*" /path/                                                          # Search all files in directory for "string*" and list the files

When I build the MD into an HTML file it displays properly, it's just live view that doesn't work.

Using MarkdownEditing plugin, Macbook Pro 2019 MacOS Mojave, Sublime 3.2.2 build 3211.