FSharp.Formatting icon indicating copy to clipboard operation
FSharp.Formatting copied to clipboard

Raw Command does not work

Open ghost opened this issue 9 years ago • 0 comments

In the Evaluation section there is a mention of a "raw" command. But this is not working. We should be able to write something like this.

(**
    (*** raw ***)
    Some raw text.
*)

And this would just emit the raw text

Some raw text.

Currently it will produce a block that is interpreted as an F# Snippet.

I Debugged the problem up to the function FSharp.Literate.CodeBlockUtils.collectComments. In this function there is a Pattern matching for this kind of case.

| (ConcatenatedComments (String.StartsAndEndsWith ("(***", "***)") (ParseCommands cmds)))::lines ->

But this line will never match. Because the matched String is "    (*** raw ***)" (with leading whitespace). Adding a String.TrimStart will break some other tests in the system. It seems that currently there doesn't exists any way to emit raw text. Neither from fsx or md.

ghost avatar Mar 04 '16 06:03 ghost