ENGLISH·COURSE API
    Preparing search index...
    • Returns the Markdown a learner on locale should read, without its ## language heading.

      Parameters

      • markdown: string

        The lesson's whole readme.md body

      • locale: string

        The app's active locale, as next-intl reports it

      Returns string

      The selected section's body, or the whole body when none matches

      Resolves in one order — the requested locale, then English, then Spanish — so a lesson whose notes do not yet carry every language still renders prose the learner can read instead of an empty panel. A body with no recognized language section is returned whole, title heading included, so notes never render broken.

      selectNotesForLocale("# Intro\n\n## Español\n\nHola.", "es"); // "Hola."
      selectNotesForLocale("# Intro\n\n## Español\n\nHola.", "pt"); // "Hola."