-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Parsing error for textarea
that contains markdown source code
#102
Comments
I didn't think to account for markdown being included in a response, so I can can definitely see where this is going wrong there. I will make some tweaks to handle that :) The only issue I see coming up is the |
BTW I love the idea of using issue forms to generate blog posts. If you ever decide to open source that project, I'd love to share it! I'm working on some documentation around IssueOps, and it would make a cool use case :) |
Awesome, thank you! I was imagining you could have behaviour that varies depending on whether a template file was provided or not. If no Issue Form Template file is passed as an argument, you could parse with the current behaviour.. |
I've implemented it so far in a very primitive way! I'm effectively just parsing the issue template, and then populating a Here's the source code for my site and I've attached an "architecture diagram" below. I'm starting a "linkblog" and wanted to be able to add posts easily from my phone. This way, I get a nice Markdown GUI on my mobile and I can even copy images in and use GitHub as a CDN (of sorts) 😉 I intend to flesh this out more, but as a quick-and-dirty approach it does the trick! I'd be keen to hear any suggestions though! See an example Issue here: stochastical/abstractnonsense#6 ---
config:
look: classic
theme: default
---
flowchart TD
subgraph github["Github"]
source["Static assets and code"]
cfPages["Cloudflare Pages"]
actions["Action worflow"]
issue["Issue Form"]
issue -- triggers on creation --> actions
actions -. commits new Hugo post .-> source
cfPages -- watches --> source
end
subgraph cloudflare["Cloudflare abstractnonsense.xyz"]
domain(["Domain registrar"])
builder["Runner"]
cdn["CDN"]
domain -- DNS records --> cdn
builder -- deploys --> cdn
end
cfPages -- builds with Hugo --> builder
source@{ shape: db}
cfPages@{ shape: card}
actions@{ shape: card}
issue@{ shape: tag-proc}
cdn@{ shape: disk}
builder@{ shape: braces}
source:::Sky
cfPages:::Sky
actions:::Sky
issue:::Sky
cdn:::Peach
domain:::Peach
classDef Peach stroke-width:1px, stroke-dasharray:none, stroke:#FBB35A, fill:#FFEFDB, color:#8F632D
classDef Sky stroke-width:1px, stroke-dasharray:none, stroke:#374D7C, fill:#E2EBFF, color:#374D7C
style cdn stroke:#FF6D00
style domain stroke:#FF6D00
style builder stroke:#FF6D00
style github fill:#BBDEFB,stroke:#424242
style cloudflare fill:#FFE0B2,stroke:#FF6D00
|
Yeah I think this is the best way to go. Unfortunately without the form template there's no way to know what headers should or shouldn't be included as separate fields. I will go ahead and work on this! |
Given the following template:
and the following example Issue:
the parsed JSON looks like
we can see it's
link
fieldheader_3
field instead of preserving it inside ofcontent
That is, the expected output should be:
The text was updated successfully, but these errors were encountered: