fsprojects / FsReveal

FsReveal parses markdown and F# script file and generates reveal.js slides.
http://fsprojects.github.io/FsReveal
258 stars 102 forks source link

C# Class sample turns off F# highlighting afterwards #113

Open isaacabraham opened 6 years ago

isaacabraham commented 6 years ago

The following sample turns off highlighting for the F# snippet. However, if you invert them, the F# code is correctly set. Also, replacing the C# sample with var x = 1; leaves F# highlighting intact.

```csharp class Employee { } ``` *** ```fsharp type Foo = | A | B | C ```

forki commented 6 years ago

that's a feature! don't use that language

xdaDaveShaw commented 5 years ago

How else do you shame C#? ;)

I noticed this when using C#'s String Interpolation.

This works:

```csharp
class C {}
```
---
```fsharp
let x = 10
```

This doesn't:

```csharp
void Foo(int x) => $"{x}";
```
---
```fsharp
let x = 10
```