Mask Freestyle

When I mask a layer in the render layers, the layer’s freestyle outline still shows up in the render. Is there a way to mask a layer in freestyle? I can’t mask out the outline in the compositor, because I am using the freestyle to svg addon to get a masked out svg.