Comments (5)
Additionally, noting explicitly that it feels a little weird that comments render as empty paragraphs:
Input:
== comments ==
%% this is a comment
%% another comment
Output:
<div id="comments"><h2 id="comments" class="header"><a href="#comments">comments</a></h2></div>
<p></p>
<p></p>
Or I guess maybe the blank lines between the comments render as empty paras?
== comments ==
%% this is a comment
%% another comment
Gives:
<div id="comments"><h2 id="comments" class="header"><a href="#comments">comments</a></h2></div>
<p> </p>
from vimwiki-rs.
I should revise html output of empty paragraphs to be nothing.
Separately, comments are supposed to be the first thing processed when it comes to inline content. I'll have to write up some tests based on your examples and figure out what's up.
Thanks for these!
from vimwiki-rs.
I think 35498bf solves the "key must be a string" error. Those should never be a true problem, by the way, as it just prevents caching from happening but not the actual conversion to html.
As for the comment becoming a definition list, I think I'll need to revise the parser a little bit. Definition list has higher priority than paragraph and the term (what comes before ::
) allows pretty much any character including %%
; so, I think it's eating the comment.
from vimwiki-rs.
@brennen give d339b69 a go to see if that fixes the issue.
from vimwiki-rs.
No more error message and the comments aren't rendered as definition lists, looks good!
from vimwiki-rs.
Related Issues (20)
- Write tests to validate that all of vimwiki elements can be converted to json
- Support nested blockquotes
- Support PDF output HOT 1
- Support epub output
- Add to_borrowed and into_owned for ParseError<'a> HOT 1
- Move majority of vimwiki-cli to lib.rs instead of main.rs
- Add prev & next sibling edges to ents
- Add root edge to ents
- Support output to vimwiki
- Support field setters on wasm
- Make table iter structs top-level exports
- Support IntoChildren for ref and mut ref HOT 1
- List items with embedded line breaks render with no space between words on either side of newline HOT 3
- Rewrite text parser HOT 1
- Write vimwiki-cli readme
- Write tests for Cells and IntoCells table iterators HOT 1
- Standalone in-page anchor links point to index.html rather than current page on conversion HOT 2
- vimwiki-server does not build
- `the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimwiki-rs.