NAME

WeBWorK::PG::ConvertToPGML - convert a file in original PG format to PGML

DESCRIPTION

Converts a pg file to PGML format.

This script does a number of conversions:

FUNCTIONS

convertToPGML

This subroutine converts the file that is passed in as a multi-line string and assumed to be an older-style PG file with BEGIN_TEXT/END_TEXT, BEGIN_SOLUTION/END_SOLUTION, and BEGIN_HINT/END_HINT blocks.

The input is expected to be a string containing the source of the pg file to be converted. This returns a string that is the converted input string.