Skip to content

adm: add fandoc2md.fan conversion script#86

Merged
briansfrank merged 1 commit intofantom-lang:masterfrom
trevadelman-labs:fandoc2md
Mar 5, 2026
Merged

adm: add fandoc2md.fan conversion script#86
briansfrank merged 1 commit intofantom-lang:masterfrom
trevadelman-labs:fandoc2md

Conversation

@trevadelman-labs
Copy link
Contributor

Converts Fantom source fandoc comments and .fandoc chapter files to markdown in-place.

  • Converts ** doc comments in .fan files
  • Converts .fandoc chapter files to .md (pod.fandoc -> doc.md)
  • Star separator lines (***...) pass through unchanged
  • Escapes [xxx]: link+colon as [xxx]\: (reference-style links only)
  • --anchorMap <file> remaps fragment identifiers from camelCase to kebab-case as defined by FandocAnchorMap
  • -preview flag prints output without modifying files

Converts Fantom source fandoc comments and .fandoc chapter files to
markdown in-place.

- Converts ** doc comments in .fan files
- Converts .fandoc chapter files to .md (pod.fandoc -> doc.md)
- Star separator lines (***...) pass through unchanged
- Escapes [xxx]: link+colon as [xxx]\: (reference-style links only)
- --anchorMap <file> remaps fragment identifiers from camelCase to
  kebab-case as defined by FandocAnchorMap
- -preview flag prints output without modifying files
@briansfrank briansfrank merged commit 7c10cdd into fantom-lang:master Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants