dco_decode_mk_compile_options method
Implementation
@protected
MkCompileOptions dco_decode_mk_compile_options(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 10)
throw Exception('unexpected arr length: expect 10 but see ${arr.length}');
return MkCompileOptions(
allowDangerousHtml: dco_decode_bool(arr[0]),
allowDangerousProtocol: dco_decode_bool(arr[1]),
gfmFootnoteLabel: dco_decode_opt_String(arr[2]),
gfmFootnoteLabelTagName: dco_decode_opt_String(arr[3]),
gfmFootnoteLabelAttributes: dco_decode_opt_String(arr[4]),
gfmFootnoteBackLabel: dco_decode_opt_String(arr[5]),
gfmFootnoteClobberPrefix: dco_decode_opt_String(arr[6]),
gfmTaskListItemCheckable: dco_decode_bool(arr[7]),
gfmTagfilter: dco_decode_bool(arr[8]),
defaultLineEnding: dco_decode_opt_box_autoadd_mk_line_ending(arr[9]),
);
}