aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell.nix8
-rw-r--r--utility/formatter.xsl4
2 files changed, 4 insertions, 8 deletions
diff --git a/shell.nix b/shell.nix
index 719b8df..6aeef45 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,10 +1,6 @@
-{ system ? builtins.currentSystem }:
+{ pkgs ? import <nixpkgs> { }, mypkgs ? import <mypkgs> { }, ... }:
-let
- pkgs = import <nixpkgs> { inherit system; };
- mypkgs = import (fetchTarball "https://pkgs.kummerlaender.eu/nixexprs.tar.gz") { };
-
-in pkgs.stdenv.mkDerivation rec {
+pkgs.stdenv.mkDerivation rec {
name = "blog.kummerlaender.eu";
buildInputs = [
diff --git a/utility/formatter.xsl b/utility/formatter.xsl
index 606a764..ec6db47 100644
--- a/utility/formatter.xsl
+++ b/utility/formatter.xsl
@@ -107,7 +107,7 @@
<xsl:when test="contains(@class, 'display')">
<p class="math">
<xsl:call-template name="math_highlighter">
- <xsl:with-param name="source" select="substring(text(),3,string-length(text())-4)"/>
+ <xsl:with-param name="source" select="text()"/>
<xsl:with-param name="arguments">
<xsl:text>--display-mode</xsl:text>
</xsl:with-param>
@@ -117,7 +117,7 @@
<xsl:otherwise>
<span class="math">
<xsl:call-template name="math_highlighter">
- <xsl:with-param name="source" select="substring(text(),3,string-length(text())-4)"/>
+ <xsl:with-param name="source" select="text()"/>
</xsl:call-template>
</span>
</xsl:otherwise>