added
new file
This commit is contained in:
1 parent
3811a37b4a
commit
17238a9736
1 file changed
+19
-7
@@ -1,5 +1,6 @@
|
||||
Skill: Google Doc (.md export) → Clean Markdown
|
||||
What This Skill Does
|
||||
|
||||
# What This Skill Does
|
||||
|
||||
This skill takes a Google Docs–exported .md file and converts it into a clean, production-quality Markdown document by:
|
||||
|
||||
@@ -10,7 +11,7 @@ Normalizing headers for consistent anchor linking
|
||||
|
||||
This is a lossless transformation — no summarization, no rewriting, no omission.
|
||||
|
||||
Core Rules (STRICT)
|
||||
## Core Rules (STRICT)
|
||||
DO NOT modify content
|
||||
No summarizing
|
||||
No rewording
|
||||
@@ -27,25 +28,30 @@ Lists
|
||||
Formatting (bold, italics, etc.)
|
||||
Links
|
||||
Code blocks
|
||||
Input
|
||||
|
||||
## Input
|
||||
Markdown file exported from Google Docs (.md)
|
||||
Typically includes:
|
||||
Broken TOC
|
||||
Anchor tags like {#...}
|
||||
Page numbers in TOC
|
||||
Messy header anchors
|
||||
Output
|
||||
|
||||
## Output
|
||||
Clean .md file
|
||||
Proper Markdown TOC with working links
|
||||
Clean headers (no embedded anchors)
|
||||
Fully preserved document content
|
||||
Transformation Steps
|
||||
|
||||
## Transformation Steps
|
||||
|
||||
1. Extract and Identify TOC
|
||||
Locate the TOC section (usually near top)
|
||||
Remove:
|
||||
Page numbers
|
||||
Duplicate entries
|
||||
Google-style anchor links
|
||||
|
||||
2. Rebuild TOC (Markdown-native)
|
||||
|
||||
Convert TOC into:
|
||||
@@ -65,6 +71,7 @@ Example:
|
||||
|
||||
"What is the purpose of the iNDX CO+"
|
||||
→ #what-is-the-purpose-of-the-indx-co
|
||||
|
||||
3. Clean Headers
|
||||
|
||||
Convert headers like:
|
||||
@@ -80,6 +87,7 @@ Rules:
|
||||
Remove {#...} completely
|
||||
Keep header text EXACTLY
|
||||
Preserve header levels (#, ##, ###)
|
||||
|
||||
4. Remove Google Docs Artifacts
|
||||
|
||||
Remove:
|
||||
@@ -94,6 +102,7 @@ DO NOT remove:
|
||||
Real links
|
||||
Content text
|
||||
Lists or formatting
|
||||
|
||||
5. Preserve Everything Else
|
||||
|
||||
Do NOT touch:
|
||||
@@ -103,6 +112,7 @@ Lists or numbering
|
||||
Code blocks
|
||||
Links
|
||||
Formatting (bold, italics)
|
||||
|
||||
6. Images Handling
|
||||
|
||||
If image appears as:
|
||||
@@ -117,11 +127,13 @@ If base64 blob appears:
|
||||
|
||||
Leave intact unless explicitly told to remove.
|
||||
|
||||
Output Format
|
||||
## Output Format
|
||||
|
||||
Return full .md document
|
||||
Include rebuilt TOC at top
|
||||
Ensure all TOC links work with headers
|
||||
Validation Checklist
|
||||
|
||||
## Validation Checklist
|
||||
|
||||
Before returning:
|
||||
|
||||
|
||||
Reference in new issue
Block a user