Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4
with:
repository: TerrorJack/pandoc
repository: haskell-wasm/pandoc
ref: wasm
path: pandoc

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ non-official) backports for ghc wasm backend's Template Haskell & ghci
support.

It's built using my
[fork](https://github.com/TerrorJack/pandoc/tree/wasm) which is based
on latest `pandoc` release and patches dependencies, cabal config as
well as some module code to make things compilable to wasm:
[fork](https://github.com/haskell-wasm/pandoc/tree/wasm) which is
based on latest `pandoc` release and patches dependencies, cabal
config as well as some module code to make things compilable to wasm:

- No http client/server functionality. `wasip1` doesn't have proper
sockets support anyway, and support for future versions of wasi is
Expand Down
9 changes: 8 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@
</head>
<body>
<div id="container">
<textarea id="input" placeholder="Enter your input here..."></textarea>
<textarea
id="input"
readonly
placeholder="Loading wasm module..."
></textarea>
<textarea
id="output"
readonly
Expand All @@ -69,6 +73,9 @@
<script type="module">
import { pandoc } from "./index.js";

document.getElementById("input").readOnly = false;
document.getElementById("input").placeholder = "Enter your input here...";

async function updateOutput() {
const inputText = document.getElementById("input").value;
const argumentsText = document.getElementById("arguments").value;
Expand Down