Live data from Hacker News

StackEdit: A free, open-source Markdown editor based on PageDown

benweet.github.io

51–60 of 61 posts

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#51
post #45

Markdown needs nested ordered lists. I would like to convert legal documents to markdown, but I can't. For example: 1. Item one 2. Item two a. Subitem a b. Subitem b

I don't think standard Markdown as specified by John Gruber can handle that. You can't use (a,b,c). It has to be arabic numerals.

Markdown will ignore the actual value of the digits. (1,2,3) or (1,1,1) will both be rendered as (1,2,3). This is a result of the way that HTML & CSS deal with lists. The HTML has no way to specify the value to a list item. However, you can use CSS to specify the way each list nesting level is styled. So you can have a list that has Roman Numeral -> Uppercase Letter -> Arabic Numeral -> lowercase letter

Some enhanced version of Markdown may get you closer to what you want. I use MultiMarkdown and check it, but it doesn't support directly using (a,b,c) notation either.

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#52
post #45

Markdown needs nested ordered lists. I would like to convert legal documents to markdown, but I can't. For example: 1. Item one 2. Item two a. Subitem a b. Subitem b

I don't think standard Markdown as specified by John Gruber can handle that. You can't use (a,b,c). It has to be arabic numerals. Markdown will ignore the actual value of the digits. (1,2,3) or (1,1,1) will both be rendered as (1,2,3). This is a result of the way that HTML & CSS deal with lists. The HTML has no way to specify the value to a list item. However, you can use CSS to specify the way each list nesting leve…

> The HTML has no way to specify the value to a list item.

The "value" attribute of the HTML "li" element does exactly this, but setting the value isn't really what you need for what GP was asking for; setting the kind of marker is. This can, as you note, be done through CSS, but it can also be done through HTML (using the "type" attribute of the "ol" element.)

In the context of conversion of legal documents, where the marker type is intended for reference, it would be semantically correct to do this in HTML, so it would probably be desirable for markdown to support all the marker types supported by HTML for ordered list as markers for ordered lists, and set the type attribute correctly.

So, using a number should result in the current behavior, using a lowercase letter (other than one which might be a lowercase roman numeral, like "i"!) should result in lowercase-alpha markers, etc.

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#53
post #50

Earlier quoted context omitted.

isn't that an implementation issue? your example doesn't work indeed in the StackEdit link, but 1. Item one 1. Item two 1. Subitem a 1. Subitem b does work, so that let me think that you just need to improve the parser to consider "a b c" as a valid ordered list, and maybe "i ii iii" at the same time? (I replaced a, b and 2 by 1 to force the automatic numbering)

Yes, that would be nice if it parsed correctly. I need ordered lists that have capital letters, capital roman numerals, lowercase letters, numbers, and lowercase roman numerals.

In all legal documents we work with, "legal numbering" is like 1.2.1.3. Here's CSS for that:

http://lane.net.nz/blog/dave/creating-legal-list-numbering-o...

For your Digits, Roman Numerals, and Alpha numbering (mixed symbols), here's CSS for that:

http://css.wikidot.com/cssnippet:easy-outline

Use Markdown to make your list's HTML, use CSS to style it.

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#54

Earlier quoted context omitted.

I don't think standard Markdown as specified by John Gruber can handle that. You can't use (a,b,c). It has to be arabic numerals. Markdown will ignore the actual value of the digits. (1,2,3) or (1,1,1) will both be rendered as (1,2,3). This is a result of the way that HTML & CSS deal with lists. The HTML has no way to specify the value to a list item. However, you can use CSS to specify the way each list nesting leve…

> The HTML has no way to specify the value to a list item. The "value" attribute of the HTML "li" element does exactly this, but setting the value isn't really what you need for what GP was asking for; setting the kind of marker is. This can, as you note, be done through CSS, but it can also be done through HTML (using the "type" attribute of the "ol" element.) In the context of conversion of legal documents, where t…

[deleted]

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#55
post #12

Earlier quoted context omitted.

I really don't there's a need for a special application for this; I use Emacs's markdown-mode, python-markdown, and xhtml2pdf along with a docview pane to edit and preview Markdown, and I can't imagine a smoother experience with a dedicated editor — plus I get to use the editor to which I'm generally accustomed.

You're right, you definitely don't need a dedicated application, but I would rather just open up one executable instead of cobbling together multiple utilities. It's all about your workflow though, for me, I feel more comfortable using a M↓ where scrolling is synced and it can watch what I'm doing in real-time. I'm gonna look into your setup though. I'm definitely all about being on the terminal, does your setup work…

Not really, since it relies on Emacs' docview mode, which can display the pages of a pdf file; I'm not aware of a way of doing that with vim. If I were doing it in the terminal, I'd probably use w3m in Emacs to roughly render the HTML. I don't know if that's possible in vim either, but it seems more likely.

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#58
post #16

(Context: Using ChromeOS) The biggest flaw I see in this (and in several alternatives suggested below) is that it doesn't support native browser spell check because it uses Ace (and in the case of alternatives, they do text rendering that isn't native and isn't detected as text). I use Markdown for taking outline based notes - and one of the biggest stopgaps is that I can spell check my work to make sure I'm not scre…

https://github.com/benweet/stackedit/issues/100#issuecomment...

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#59
post #16

(Context: Using ChromeOS) The biggest flaw I see in this (and in several alternatives suggested below) is that it doesn't support native browser spell check because it uses Ace (and in the case of alternatives, they do text rendering that isn't native and isn't detected as text). I use Markdown for taking outline based notes - and one of the biggest stopgaps is that I can spell check my work to make sure I'm not scre…

My favorite online markdown editor https://draftin.com/ seems to work fine with native spell check.

Re: StackEdit: A free, open-source Markdown editor based on PageDown

#60

Very slick. Nice touch adding the delay between scrolling and moving the other page. Your logo looks like StackOverflow's, is there a relationship between the two? Otherwise I'd consider changing it. Also, the save/download buttons (the first thing I look for in an app like this) are hidden behind a sliding panel. Move them front and center!

I'm glad you asked, I was thinking the same thing. Nice work though, you get a bookmark on my computer!

http://www.radiumcrm.com

Post reply on HN